Velocity attribute change failure
Wessex
Member Posts: 3
Sorry, afraid im stuck on the first hurdle, got the 4 key directions up and running no problem, but for some reason my change attributes for 'UP' and 'LEFT' arrow dont work when i release the arrow key. The actor keeps moving, 'DOWN' and 'RIGHT' work fine and stop moving when i release the key, for the life of me i cant see any difference in the rules.
Any help appreciated, thanks.
Comments
Can you post a screen shot of the rules so we can see them?
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
[IMG]http://i60.tinypic.com/qqtz5e.png[/IMG]
works
[IMG]http://i61.tinypic.com/5upgr6.png[/IMG]
doesnt work
one each of the x and y's work, one each doesnt
For your Up screen shot, the Change Attribute in the otherwise section should be:
motion.linearVelocity.y instead of motion.linearVelocity.x
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Thanks, swapped the left over and it works too, sure i tried that earlier : (
sorry and thanks for your time!
@Wessex, no worries. You have to start somewhere!
The thing to get from this is to keep in mind that the X direction/location is left to right and the Y direction/location is top to bottom.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page