Page 1 of 1

Bullets

PostPosted: Sat Oct 04, 2008 4:09 pm
by supa-tails
Hi, I am making a game that features different guns, and I am having trouble with bullets. You see, the first weapon you get is the minigun and it fires rapid fire bullets, and I am not wanting to use the origional create actor with the bullet only shooting horrizontally, but I need to know how to make the bullet shoot towards mouse when you left click. I tried doing this but the mouse down event wouldn't work, so I set it to keydown "q" and when you create it it moves to the cursor, but instead of acting like a real bullet it just follows it like a homing missle =C

Re: Bullets

PostPosted: Sat Oct 04, 2008 4:30 pm
by j2graves
I got it supa. what you have to do to make it a keydown event. you remember the invisible actor I told you to make? well first make a new activation event from that invisible actor, then choose your main char as the actor which it has an affect upon, then on the main actor, make a new event. have the event be a "activation event" and have the action be a create actor event. do you understand?

Re: Bullets

PostPosted: Sat Oct 04, 2008 5:13 pm
by jimmynewguy
wow! wierd game :lol: but just have the move to under create actor instead of draw actor, then on move finish destroy actor :D

Re: Bullets

PostPosted: Sat Oct 04, 2008 5:20 pm
by j2graves
that's not exactly what his game's gonna be like.

Re: Bullets

PostPosted: Sun Oct 05, 2008 1:45 am
by supa-tails
Lol this is just a demo, or a source engine for physics and stuff. Once I get all the stuff worked out I will make the actually story line! :mrgreen:

Re: Bullets

PostPosted: Mon Oct 06, 2008 8:51 pm
by j2graves
how's it going? is it working yet? if you don't understand anything, I can give you a step by step instruction on how to do it in the chat.

Re: Bullets

PostPosted: Mon Oct 06, 2008 11:25 pm
by supa-tails
How do I make an animation randomly be chosen when created? (For example, if something explodes it randomly chooses an animation out of 10 animations) Also how would I make more than one of the same object create? (Like 5)