Keeping Enemies on the ground?
Conifer_Apps
Member Posts: 100
Hey everybody, I have a quick question regarding actors. I have a main player who is controlled by the user. There are enemies in the game that constantly move to an x and y coordinate constrained by the position of the player. Essentially the enemies follow the actor around the map. The game is set up on a basic platformer template that I created with gravity and things like that. When the actor is on a hill and the enemy is down below the enemy takes the most direct path to the actor, which is by traveling in a diagonal line through the air and NOT on the ground like I want it to. How do I get the actor to stay on the ground rather than fly through the air? Accelerating the actor towards the ground as it tracks the player doesn't seem to work... I also want to know if there is a way that enemies can follow the actor into a building. Any ideas? Thanks so much!
Best Answer
-
tatiang Posts: 11,949Without custom collision shapes, this is hard. This is the best I could come up with and while it "works," it's about as fun to set up as a long run of dominoes.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Answers
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User