Spawner enemies can't move towards Actor
SajadKazal
Member Posts: 20
Hello all.
So i'm making a "shoot em up" as my first project in GS.
Everything works fine, but i want my spawner enemies to accelerate towards my Actor. How do i make the spawner enemies to automatically move towards my actor?
Comments
Constrain two real game attributes called game.playerX and game.playerY to the player's self.position.X and self.position.Y attributes. Then, in the enemy actor(s), have them move towards game.playerX and game.playerY.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Hey all, i asked for a couple of days: Why can't i make my spawner minions to follow my main actor?
I can only make an enemy follow my actor but not a spawner enemy
so this is the code for my spawner: http://imgur.com/w85HKcd
anyone know why i can't make spawner enemies to attack my main actor?
I merged your two threads. Please don't create new threads for the same issue. You can find your existing discussion threads at the top-right of the forums page under My Discussions.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Your rule for following the main actor is in your spawner actor. If you want your spawned enemies to follow the main actor, you need to place that rule in the spawned actor.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Thank you tatiang, it worked. Sorry about creating a new thread, won't happen again.