Action Button For RPG

I want to make a button thats used for attacking and opening chest doors ext.
i already have a left and right arrow that works great
the two buttons i have are an A Button and a B Button the B button is used to jump and i want the A Button to be the action button any ideas Thanks!

P.S Check out my new game Zombie Dodge New on the iTunes App Store available on iPad and iPhone

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Create a boolean called game.AButtonPressed and set it to false.

    In the A Button actor, change game.AButtonPressed to true when touch is pressed and to false in the Otherwise section. Then, in other actors (your main character, chests, doors), add rule conditions that do something when game.AButtonPressed is true. You might have to adjust things because if the player released the button, it will get set back to false.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.