How do I make my actor move across the screen?
benharrison01
Member Posts: 0
Hi,
I'm making a game where the aim is for the actor (blue square) to dodge the other actors (orange squares) however I cannot get the blue square to move. I would like it so I can drag it with my finger/mouse. Please could someone inform me with how to do this (using the WINDOWS edition). Many thanks.
Ben
I'm making a game where the aim is for the actor (blue square) to dodge the other actors (orange squares) however I cannot get the blue square to move. I would like it so I can drag it with my finger/mouse. Please could someone inform me with how to do this (using the WINDOWS edition). Many thanks.
Ben
Comments
If touch is pressed
Constrain self.position.X to game.mouse.position.X
Constrain self.position.Y to game.mouse.position.Y
I recommend getting this as well even though it's a Mac template: http://gshelper.com/shop/advanced-game-functions/constrain-to-mouse-and-keep-collision-gamesalad.
And finally:
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
its a tutorial on making simple touch screen buttons that
will move an object according to the buttons. up, left, up and down.