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
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
-
KevinCross London, UKPosts: 1,894
I started creating an example before @Braydon_SFX answered so might as well attach it still.
The character is at the top and shows the number you need to press. If you press the wrong one he goes red. I say he, but it's really just a box -
Braydon_SFX Posts: 9,273
Yikes! Just noticed my post was incorrect. Edited and fixed. I need some caffeine.My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Answers
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!
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Thank you for your help, it worked and you helped me a lot!
Pete