shooting diagonally

Game Editor comments and discussion.

shooting diagonally

Postby elite » Thu Oct 18, 2007 7:49 am

i just have a teeny weenie question, how do you shoot diagonally?
is it sumthing like
Code: Select all
yvelocity = 8 xvelocity=5

I aint sure, but it would be helpful if this was answered....
I promise you, that the alpha test of "Arbiter's Adventure" is on the way!
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: shooting diagonally

Postby Spidy » Thu Oct 18, 2007 8:52 am

wait!! there is a topic where kalladdolf gave me gun demo plz wait!!
Image
VOTE FOR MY SIGNATURE PLEASE.......THANK YOU
User avatar
Spidy
 
Posts: 935
Joined: Tue Aug 14, 2007 1:28 pm
Location: http://www.inatonibai.com
Score: 38 Give a positive score

Re: shooting diagonally

Postby Spidy » Thu Oct 18, 2007 8:53 am

Image
VOTE FOR MY SIGNATURE PLEASE.......THANK YOU
User avatar
Spidy
 
Posts: 935
Joined: Tue Aug 14, 2007 1:28 pm
Location: http://www.inatonibai.com
Score: 38 Give a positive score

Re: shooting diagonally

Postby elite » Thu Oct 18, 2007 9:08 am

is this the one where it shoots towards your mouse because thats not what i had in mind......
i need a tank sort of thing (btw it IS an ENEMY) to shoot diagonally in to the sky (i will add gravity to the bullet)
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: shooting diagonally

Postby Spidy » Thu Oct 18, 2007 9:10 am

THINKING!!!!!!! :?you mean gravity come in to enemys bullets
Image
VOTE FOR MY SIGNATURE PLEASE.......THANK YOU
User avatar
Spidy
 
Posts: 935
Joined: Tue Aug 14, 2007 1:28 pm
Location: http://www.inatonibai.com
Score: 38 Give a positive score

Re: shooting diagonally

Postby Spidy » Thu Oct 18, 2007 9:15 am

sorry sorry just a minute plz
Image
VOTE FOR MY SIGNATURE PLEASE.......THANK YOU
User avatar
Spidy
 
Posts: 935
Joined: Tue Aug 14, 2007 1:28 pm
Location: http://www.inatonibai.com
Score: 38 Give a positive score

Re: shooting diagonally

Postby Spidy » Thu Oct 18, 2007 9:19 am

maybe gravity404 game will help ya :o

http://game-editor.com/forum/download.php?id=962
Image
VOTE FOR MY SIGNATURE PLEASE.......THANK YOU
User avatar
Spidy
 
Posts: 935
Joined: Tue Aug 14, 2007 1:28 pm
Location: http://www.inatonibai.com
Score: 38 Give a positive score

Re: shooting diagonally

Postby tufif » Fri Oct 19, 2007 1:05 pm

So you want it to launch like a cannon?
Maybe something like this
Code: Select all
xvelocity = -8;
yvelocity = -8;

Use that on the bullet when you first create it, then on each draw actor do this:
Code: Select all
yvelocity += 0.8;

That works on jumping, so it should work on bullets too. Then just put in your collision code for whatever you want it to do. I'm not at home right now so I can't test the code or try different numbers, but I that should at least get you started.
tufif
 
Posts: 22
Joined: Sat Oct 13, 2007 3:00 am
Score: 2 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron