hold down mouse

Game Editor comments and discussion.

hold down mouse

Postby frodo » Fri Apr 07, 2006 3:54 am

I have a tank that drives around and shoots. I want to be able to hold down the mouse and a bullet comes out every 200 milliseconds. would I use activation events?
Thanks.
User avatar
frodo
 
Posts: 127
Joined: Tue Mar 21, 2006 6:53 pm
Location: universe
Score: 2 Give a positive score

Postby makslane » Fri Apr 07, 2006 4:02 am

Create a timer in the Mouse Button Down event and destroy in the Mouse Button Up event.

In the timer event, make the shot
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby frodo » Fri Apr 07, 2006 1:02 pm

Thanks
User avatar
frodo
 
Posts: 127
Joined: Tue Mar 21, 2006 6:53 pm
Location: universe
Score: 2 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest