How to compel player to alternate the arrows ?
Dommi
Member Posts: 2
in Tech Support
Hi, I've started on making game yesterday, but I'm new to GameSalad and programming in general, no skill before. So, I want to make moving actor by fast alternating arrows, but I have no idea how to ban using only one arrow. Could anyone help me with this ? Which rules should I use ?
Comments
The question is a little confusing !? Can you add any more detail.
Create a text attribute called game.whichArrowNext. In the left arrow, have a rule that says When touch is pressed change attribute game.whichArrowNext to 'right'. In the right arrow have a rule that says When touch is pressed change attribute game.whichArrow to 'left'. In each rule, add a condition that says When attribute game.whichArrow does not contain [the other direction].
I'll post a demo in a bit.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Here's the demo: https://www.dropbox.com/s/pk1luj359inkin6/alternate arrows.zip
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Thank you !!
GPN + 10 points.