How Can I Have An Enemy Spawn Only A Certain Number Of "coins" Or "bullets"

Discussion in 'How Can I...?' started by surajsahu, Oct 22, 2018.

  1. surajsahu

    surajsahu Boxer

    Joined:
    Oct 19, 2018
    Messages:
    8
    Likes Received:
    0
    i have an enemy object spawn a certain number of "coins" and only after collecting said coins i can continue to the next area, but i cant figure out how to have only a certain number of coins to be spawned, can ya please help me with that?

    also the enemy object follows a path in ping-pong style and the main character has limited mobility
     
  2. surajsahu

    surajsahu Boxer

    Joined:
    Oct 19, 2018
    Messages:
    8
    Likes Received:
    0
  3. spicedbeangames

    spicedbeangames Miniboss Boxer

    Joined:
    Mar 31, 2016
    Messages:
    1,389
    Likes Received:
    596
    You can't spawn a certain amount of coins. Your only option is to add the set amount of coins you require then use the event observer to check for the required amount to either end the game or move to the next level. Remember to add a delay or a 'next level' UI for the observer to link to, otherwise it will just end the game without any achievement showing
     

Share This Page