Help with One Shot game

whycaliwhycali Member, PRO Posts: 87
edited March 2015 in Working with GS (Mac)

All,

Thanks for viewing my question. Here it is below.

What I have done is i have one (Single Shot actor bullet) . that will collide with another actor (target) when this happens the Target will then explode and fire 4 bullets. If for some odd reason that the Target does not hit another Target i would like it to say Game Over. I have no issue hitting all the Targets and the next level button shows up.

Comments

  • jigglybeanjigglybean Member Posts: 1,584

    You will need to create a game level attribute boolean (yes/no)

    Then create an actor that displays your game over text.

    Then create a rule in with your enemy

    If game.bullet overlaps or collides with your game hero name, Change attribute game.over to true.

    Then in your game over actor, if game,over is true, spawn actor at X/Y location.
    Then, when touch is pressed, reset scene (to play again) or back to your menu. Just remember if you do that, you will need another rule

    When touch is pressed, change attribute game.over to false.

    Like Balls? Then click here! We've 100 coming soon

  • whycaliwhycali Member, PRO Posts: 87

    @jigglybean said:

    Then create an actor that displays your game over text.

    What do you mean by this?

    I have tried using a Boolean as a simple yes or no that did all Actors get destroyed Yes Spawn Next Level. And if all Actors are not destroyed the No and Game Over. 1 Problem that i have is when i hit the first actor and the chain reaction hasn't finished such as hitting more Actors it will automatically say game over until the chain reaction is completed.

    Sorry if that doesn't make any sense.

  • whycaliwhycali Member, PRO Posts: 87

    All,
    This is what i need help with.

    You get 1 Bullet to make this happen.

    There currently are 3 Targets and 3 Stars. In order to Go onto the next level you need to get all 3 Targets and 3 Stars. If you get all Targets and 2 Stars, 1 Stars i want it to say game over. Same goes if you get all the Stars but 2 Targets or 1 Target are left. = Game Over.

    I have tried so many different things. Please if you can help please :)

Sign In or Register to comment.