Page 1 of 1

shooting

PostPosted: Sun Feb 25, 2007 6:16 am
by UltimatHedgehog
i have an actor i set to follow the player i want i to launch my star actor wich is set to destroy enemies

how do i make the launcher launch the stars ,shots, up or if possible the direction player is facing

PostPosted: Sun Feb 25, 2007 10:49 am
by DarkParadox
if you want it to be one button create 2 shot actors make one have xvelocity=+6(shot1) andthe other have xvelocity=-8(shot2) a variable shoot then set it so when you press left shoot=1 if you press right shoot =2 and then set for key down(for what ever button your useing to shoot with)then set it with the following code

Code: Select all
if(shoot==1)
{
    CreateActor("shot1", "insert your animation here ", "(none)", "(none)", 0, 0, false);
}
if(shoot==2)
{
    CreateActor("shot2", "insert your animation here too", "(none)", "(none)", 0, 0, false);
}

and there you go shooting with one button(sorry it's so complicated)

PostPosted: Sun Feb 25, 2007 2:55 pm
by UltimatHedgehog
How can i make it so i can only use it after
money.textNumber==0

PostPosted: Sun Feb 25, 2007 5:38 pm
by UltimatHedgehog
nvrmind i forgot i had the gun set to appear then