firing in an arc

Talk about making games.

firing in an arc

Postby elite » Tue Oct 09, 2007 9:06 am

ok, i know how to shoot forwards in a straingt line on the X axis but I dont know how to fir in an arc. You know what I mean? I want my player to throw grenades but they will look really bad if he fires grenades in a straight line. Any suggestions?
Thanks again
twigser
after reading this you have just realized you have wasted 5 seconds of your life.
User avatar
elite
 
Posts: 29
Joined: Wed Oct 03, 2007 12:07 pm
Location: in URECTUM
Score: 0 Give a positive score

Re: firing in an arc

Postby Kalladdolf » Tue Oct 09, 2007 9:41 am

just add some gravity to the grenade :D
Grenade -> Draw actor -> Script Editor ->
Code: Select all
yvelocity = yvelocity +1;

and:
collision -> any side of "ground" -> physical response //that it doesn't fall through the floor.
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: firing in an arc

Postby elite » Tue Oct 09, 2007 11:29 am

oh WOW, i really shouldve thought of that! THanks :D :lol: :!: :mrgreen: :lol: :)
after reading this you have just realized you have wasted 5 seconds of your life.
User avatar
elite
 
Posts: 29
Joined: Wed Oct 03, 2007 12:07 pm
Location: in URECTUM
Score: 0 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron