Page 1 of 1

Stargate: Atlantis - No questions right now

PostPosted: Tue Dec 22, 2009 1:33 pm
by Camper1995
Hello all. I wasnt here loooong time.
But I am back now with new project: SG: Atlantis

I am really big fan of serial Stargate.

So, I am making game.. But I need help..

I have a spaceship there, and I want to make: So you can rotate the ship left and right (thats maked)

but, when you press SPACE, the ship will fire 2 rockets (first buttonpress 1 rocket, second buttonpress second rocket(thats also maked)

But I cant make, when the ship is turned for example 80° the rocket will be rotated also in 80° and they will fly also in 80°...

sga problem.JPG


______________________

So, if can anyone fix me this,..?

Here is the game: http://www.edisk.cz/stahni/36528/SGA_ge ... .03MB.html
:D

I hope someone will help me. :)

Thanks,

CAmPeR! :wink:

Re: Stargate: Atlantis - Need help with script

PostPosted: Tue Dec 22, 2009 1:59 pm
by jimmynewguy
well i cant look at the ged since i dont have .rar and dont feel like getting it :lol: but if your using angles and directional velocity to fly your ship then on the create actor of the rockets put
Code: Select all
angle=creator.angle;
directional_velocity=10;//or something like that....

i havent used GE in a while so i think thats how directional velocity is put :)

Re: Stargate: Atlantis - Need help with script

PostPosted: Tue Dec 22, 2009 3:49 pm
by Camper1995
Thanks Jimmy! Its better, but not good! :(

The missiles are flying on the random sides.. I dont know..maybe I must pus there some code like:
(Daedalus is the player,that ship)
Code: Select all
angle=Daedalus.angle/360; ?
directional_velocity=10;//or something like that....

Re: Stargate: Atlantis - Need help with script

PostPosted: Tue Dec 22, 2009 3:54 pm
by Camper1995
Well, never mind. I will make it some other way. I make laser, not missiler...

But thanks for helping! :)

Re: Stargate: Atlantis - No questions right now

PostPosted: Tue Dec 22, 2009 5:59 pm
by jimmynewguy
wait im confused. why did you divide the angle by 360?

Re: Stargate: Atlantis - No questions right now

PostPosted: Tue Dec 22, 2009 6:30 pm
by Camper1995
I dont know. :D I saw that in other scripts for this xD

Re: Stargate: Atlantis - No questions right now

PostPosted: Wed Jan 06, 2010 9:49 pm
by Troodon
You make a variable that defines the angle of movement. Then just slave the missiles to do whatever the ship says. :wink: