Shooting and Follow

digdug678

  • Posts: 9
So i don't know how to script and none of the pre packaged scripts are doing it. i need to know how to make the players bullet go depending on which way the player is facing. Also i have zombies i got them to spawn but cant get them to follow the player or change animations depending what way they are facing.
He who smelt it, dealt it

Wilson2

  • Posts: 1
I'm currently working on a "top down walk and shoot towards the mouse" actor behavior. It's still glitchy but close to being done. The zombie facing the player shouldn't be that hard either... I'll see if I could figure that out. If not keep me posted.

gamegirlxl

  • Posts: 713
Make a blue attribute number called x (or whatever I'm using x).

So, always change x to match the animation number, or however you know what direction you're facing.

Then when you fire,

if x=1
 fire up
if x=2
 fire down
etc.