Shooting Question

Game Editor comments and discussion.

Shooting Question

Postby fatouraee » Thu Jun 21, 2007 8:36 pm

is it possible to create a rocket like motion in GE.
what physics would you use if yes.
what i mean is when you shoot a rocket in an angle it will continue and arc down to the other side like a mirror.


...............................
...... ....===.............
..... ==........==.......
..==................==...
..............................


Thank You.
fatouraee
 
Posts: 4
Joined: Wed Jun 20, 2007 6:39 pm
Score: 0 Give a positive score

Postby jimmynewguy » Fri Jun 22, 2007 3:46 am

you could have under draw actor for the rocket
Code: Select all
yvelocity += .5;
xvelocity +(or)minus = .2;
(values can be changed to fit how big)
so it will go down and (+)right/(-)left and have the rocket shoot along a path that goes as high as u need (make sure that when it finishes its path that it changes the path to none) and that should probably work :D
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Postby Game A Gogo » Fri Jun 22, 2007 11:41 pm

that will only make the rocket fly down, not launch it.
to launch it, add this in the create actor:
Code: Select all
yvelocity-=2;
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron