Sequencial points

Hi guys,
Could you please help me? I am stuck with my game.
I want my actor to get "assets" by contacting targets in a numerical sequence (each target is numbered 1,2,3). So e.g. it has to touch first the target 1, than target 2 and only then target 3 (if target 3 is touched before target 2, the actor dies).
Thanks
Pete

Best Answers

Answers

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    edited September 2013
    Create an Integer game attribute and set it to 1.

    In your actors, create a self attribute. Lay your actors on the scene, then double click each one. Change the first actors self attribute to 1. Change the second to 2. And so on.

    Then go back and edit to Prototype:

    When attribute game.Attribute = self.Attribute, and when touch is pressed

    Change attribute game.Attribute to game.Attribute+1

    New rule.

    When touch is pressed, when attribute game.Attribute does not equal self.Attribute

    Game over


    Hopefully that helps!
  • PetCroPetCro Member Posts: 21
    Hi Braydon_SFX and KevinCross,
    Thank you for your help, it worked and you helped me a lot!
    Pete
Sign In or Register to comment.