Page 1 of 1

Click to shoot?

PostPosted: Thu Apr 06, 2006 6:51 pm
by The achievement
How do i do this? like i have my view all set and stuff, all i want now is to, when i click, i want bullets to come out. can someone tell me how to do this? thank you!

PostPosted: Fri Apr 07, 2006 3:49 am
by makslane
Look the shot in the "Shoot'em up " demo (http://game-editor.com/games/shootemup.zip)

PostPosted: Fri Apr 07, 2006 9:56 pm
by The achievement
i dont think it tells me how i shoot when i click

PostPosted: Fri Apr 07, 2006 11:11 pm
by DilloDude
Use an actor that has FollowMouse on create actor. On mousebutton down, use
Code: Select all
sendActivationEvent("gun");

In gun, add an activation event: create actor->shot.
You can also right click and say add activation event, but this sends it to just one clone, so I prefer to use the script function. In this case, it shouldn't matter, though.