I need help....!

Talk about making games.

I need help....!

Postby Kooldudese » Thu Dec 13, 2007 10:28 pm

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...
User avatar
Kooldudese
 
Posts: 128
Joined: Sat Jan 27, 2007 5:20 pm
Location: In a house
Score: 0 Give a positive score

Re: I need help....!

Postby Bee-Ant » Thu Dec 13, 2007 11:02 pm

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
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: I need help....!

Postby Kooldudese » Sun Dec 16, 2007 6:29 pm

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?
User avatar
Kooldudese
 
Posts: 128
Joined: Sat Jan 27, 2007 5:20 pm
Location: In a house
Score: 0 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron