Stargate: Atlantis - No questions right now

Talk about making games.

Stargate: Atlantis - No questions right now

Postby Camper1995 » Tue Dec 22, 2009 1:33 pm

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:
Last edited by Camper1995 on Tue Dec 22, 2009 3:56 pm, edited 2 times in total.
Say hello to my little friend.
User avatar
Camper1995
 
Posts: 707
Joined: Tue Dec 30, 2008 7:20 pm
Location: Lost in the past.
Score: 44 Give a positive score

Re: Stargate: Atlantis - Need help with script

Postby jimmynewguy » Tue Dec 22, 2009 1:59 pm

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 :)
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: Stargate: Atlantis - Need help with script

Postby Camper1995 » Tue Dec 22, 2009 3:49 pm

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....
Say hello to my little friend.
User avatar
Camper1995
 
Posts: 707
Joined: Tue Dec 30, 2008 7:20 pm
Location: Lost in the past.
Score: 44 Give a positive score

Re: Stargate: Atlantis - Need help with script

Postby Camper1995 » Tue Dec 22, 2009 3:54 pm

Well, never mind. I will make it some other way. I make laser, not missiler...

But thanks for helping! :)
Say hello to my little friend.
User avatar
Camper1995
 
Posts: 707
Joined: Tue Dec 30, 2008 7:20 pm
Location: Lost in the past.
Score: 44 Give a positive score

Re: Stargate: Atlantis - No questions right now

Postby jimmynewguy » Tue Dec 22, 2009 5:59 pm

wait im confused. why did you divide the angle by 360?
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: Stargate: Atlantis - No questions right now

Postby Camper1995 » Tue Dec 22, 2009 6:30 pm

I dont know. :D I saw that in other scripts for this xD
Say hello to my little friend.
User avatar
Camper1995
 
Posts: 707
Joined: Tue Dec 30, 2008 7:20 pm
Location: Lost in the past.
Score: 44 Give a positive score

Re: Stargate: Atlantis - No questions right now

Postby Troodon » Wed Jan 06, 2010 9:49 pm

You make a variable that defines the angle of movement. Then just slave the missiles to do whatever the ship says. :wink:
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest