Movement
ULTIMATEGMX
Member Posts: 2
Hey. Please bear with me because I'm new to this. I'm creating a gamesalad project in windows for university. Basically its a top down game and I need help with actor movement.
The game background will be dark and when I click the button down on the mouse it will create a circle of light like a torch. If the torch is over an actor, I want the actor to follow the torch/mouse when it is dragged but only while the actor is in the torch area. If the mouse is depressed or the torch light is moved away from the actor, I want the actor to continue on its previous commanded path until it hits a wall. Any help would be greatly appreciated.
The game background will be dark and when I click the button down on the mouse it will create a circle of light like a torch. If the torch is over an actor, I want the actor to follow the torch/mouse when it is dragged but only while the actor is in the torch area. If the mouse is depressed or the torch light is moved away from the actor, I want the actor to continue on its previous commanded path until it hits a wall. Any help would be greatly appreciated.
Answers
The basic idea for the movement would be:
When actor collides with [torch actor]
[store current direction as angle attribute]
[follow mouse]
Otherwise
[move in stored direction]
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Also I couldnt open the zip attachment. Im on windows and I think this was a mac file. Appreciate your help.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User