shooting

Game Editor comments and discussion.

shooting

Postby UltimatHedgehog » Sun Feb 25, 2007 6:16 am

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
Image
I always thought Hell would be a giant load screen that goes on for eternity, then one day, eons later, it would end, only to reveal a slightly different loading screen.
User avatar
UltimatHedgehog
 
Posts: 325
Joined: Fri Jan 19, 2007 1:48 pm
Location: http://downloads.khinsider.com/?u=112542 plz click
Score: 10 Give a positive score

Postby DarkParadox » Sun Feb 25, 2007 10:49 am

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)
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score

Postby UltimatHedgehog » Sun Feb 25, 2007 2:55 pm

How can i make it so i can only use it after
money.textNumber==0
Image
I always thought Hell would be a giant load screen that goes on for eternity, then one day, eons later, it would end, only to reveal a slightly different loading screen.
User avatar
UltimatHedgehog
 
Posts: 325
Joined: Fri Jan 19, 2007 1:48 pm
Location: http://downloads.khinsider.com/?u=112542 plz click
Score: 10 Give a positive score

Postby UltimatHedgehog » Sun Feb 25, 2007 5:38 pm

nvrmind i forgot i had the gun set to appear then
Image
I always thought Hell would be a giant load screen that goes on for eternity, then one day, eons later, it would end, only to reveal a slightly different loading screen.
User avatar
UltimatHedgehog
 
Posts: 325
Joined: Fri Jan 19, 2007 1:48 pm
Location: http://downloads.khinsider.com/?u=112542 plz click
Score: 10 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron