Need a tutorial on how i can make actor move by touch
Deniro
Member Posts: 6
Hello. im really new at Gamesalad ive been reading Cookbook Tutorials to learn, im making a test project, can anyone tell me what i need to do to make this work.
I want to make the space ship move with my finger when i press it and follow every where i go with it?
Here is a printscreen of my test project.
http://s8.postimg.org/d3ddqxfut/problem.jpg
if you have a video tutorial or a example project please send me a link or rar : johann5525@gmail.com
Comments
In your screenshot, you are constraining self.Position.X to self.Position.Y. This means that the X position of the actor will always equal the Y position. So if you place the actor at X=100, Y=250 and click on the actor, it will immediately jump to X=250, Y=250 and stay there.
What you want instead is to constrain self.position.X to game.Mouse.Position.X and self.position.Y to game.Mouse.Position.Y.
The mouse position attributes are in the Devices section of the Attribute Browser.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Thank you it all works now.