how to make a charecter move with something similar to joy pad...
Hipster_Owl_Studios
Member, PRO Posts: 214
Ok so im new to gamesalad and im making a 2d side scrolling game for the ipad, and im lost as to how i can make a left arrow on the screen and a right arrow on the screen(well i know how to do that) then when u press one of them how would i make my charecter/actor move left if the user presses the left arrow and etc. can someone please help me out or if there is a tuturioal can you please post the link thank you!
Comments
When receives touch change attribute game.PlayerDirection to 1
Then in the player actor have a rule that says if PlayerDirection = 1 either use the move or animate behaviours.
Basically this sets it up so that when you press the left button on the screen, the attribute is changed to 1 (left) and the character will move appropriately.
Hope this clears things up a little... I'm a noob myself. lol.
Oh and don't forget to set your "else" statements... you won't want your character to keep moving... perhaps have PlayerDirection set to 0 for no movement
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io