Page 1 of 1

I need help....!

PostPosted: Thu Dec 13, 2007 10:28 pm
by Kooldudese
how do you make an actor create another actor (as an attack) and depending on where the enemy actor is standing the actor of the attack will have the animation of that angle... (basictly if the enemy is to the right it will shoot right,enemy to the left shoot left, shoot, up, shoot down...) and mabye possibly if the actor turns to another angle it will ajust the animaton accordingly... thx 1 points to anyone that can help me out with this...

Re: I need help....!

PostPosted: Thu Dec 13, 2007 11:02 pm
by Bee-Ant
To make player shoot
player>Keydown>ScriptEditor>
Code: Select all
CreateActor("Shot","Shot",("none"),("none"),0,0);

To make the Shot chasing Enemy,put this
Shot>DrawActor>ScriptEditor>
Code: Select all
MoveTo("EventActor","Enemy",30);

Ummm dont copy-paste this code, just use CreateActor in Keydown to shoot and MoveTo(relative to Enemy) in DrawActor of Shot... :D

Re: I need help....!

PostPosted: Sun Dec 16, 2007 6:29 pm
by Kooldudese
Notice how i said i wanted to shot animation to be ajusted according to where the enemy is... can anyone help me out with this?