Creating a game over state in my game

filmsimonfilmsimon Member, PRO Posts: 33

Ok, I hope my explanation translates here.

  1. I have an instructor actor that randomly picks a number from 1 to 6 and it changes every 5 seconds.
  2. I have the number actors spawning on the screen, all actors from 1 to 6 are present on the screen. The number which is currently selected by the instructor actor is then the active actor. The object of the game is to press the active actor and no other.
  3. When you press the active number actor you score a point.
  4. If you press any of the other numbers it's game over.

I'm trying to figure out how to get the game to recognise when a user doesn't press the active actor and makes a mistake by pressing one of the other numbers. I think I need some kind of bridge between the instructor and the spawner. Can anyone help me with this?

Comments

  • Thunder_ChildThunder_Child Member Posts: 2,343

    Hmm. When active actor is true, rule if non active actor or back is pressed Change game active to false "game over". ???

  • filmsimonfilmsimon Member, PRO Posts: 33
    edited July 2014

    @Thunder_Child‌ - Thanks for the help, I solved it in the end. I've got an actor for each of the numbers. What I've done is include rules for each actor on how it responds when the other 5 actors are active. took a bit of time to get it down but it's just a case of covering every eventuality. It's funny how it seems to take more programming to get the users mistakes covered than the basic mechanics of the game lol.

Sign In or Register to comment.