Click to shoot?

Talk about making games.

Click to shoot?

Postby The achievement » Thu Apr 06, 2006 6:51 pm

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!
User avatar
The achievement
 
Posts: 220
Joined: Sun Feb 12, 2006 11:01 pm
Location: United States,Massachusetts
Score: 0 Give a positive score

Postby makslane » Fri Apr 07, 2006 3:49 am

Look the shot in the "Shoot'em up " demo (http://game-editor.com/games/shootemup.zip)
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby The achievement » Fri Apr 07, 2006 9:56 pm

i dont think it tells me how i shoot when i click
User avatar
The achievement
 
Posts: 220
Joined: Sun Feb 12, 2006 11:01 pm
Location: United States,Massachusetts
Score: 0 Give a positive score

Postby DilloDude » Fri Apr 07, 2006 11:11 pm

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.
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest