Spawning issue

tinmouse77tinmouse77 Member Posts: 10
edited November -1 in Working with GS (Mac)
Hi All,

Hopefully you can save me some time on this! I have a ball spawning from the top of the screen when the user tutches it, if the ball goes into a goal the game moves onto the next level, if it does not, then the player have only 2 balls left.

However, the user can tap on the screen several times spawning as many balls as they like. I want to setup the game so the user can only spawn 3 balls at a time.

I hope this makes sense to you.

Any help would be greatly appreciated.

Thanks in advance!

Tinmouse.

Comments

  • tinmouse77tinmouse77 Member Posts: 10
    Hi All,

    Hopefully you can save me some time on this! I have a ball spawning from the top of the screen when the user tutches it, if the ball goes into a goal the game moves onto the next level, if it does not, then the player have only 2 balls left. This works fine.

    However, the user can tap on the screen several times spawning as many balls as they like. I want to setup the game so the user can only spawn 3 balls at a time.

    I hope this makes sense to you.

    Any help would be greatly appreciated.

    Thanks in advance!

    Tinmouse.
  • UtopianGamesUtopianGames Member Posts: 5,692
    You need a game integer to count the balls and every time the user taps change it to +1 and then in your spawner actor do if integer<3 spawn ball.

    I have made a quick video for you.



    Darren.

    GS TOOLS
    GAME TEMPLATES
    Video Tutorials
    Forum
    3rd party marketplace
  • tinmouse77tinmouse77 Member Posts: 10
    Thanks Darren, that works fine!
Sign In or Register to comment.