Login | Register

Ammo

August 31, 2007, 02:03 by death-droid
[loading]
-->
gameguy2500
I want to know how I can make it so when something happens I can disable left click, but then enable it again as well. How can this be done?

Death-Droid
Use this.

What it does is check if ammo is higher the 0 then it allows the mouse button to be pressed.

if ammo>0 and mouse_check_pressed(mb_left) then{//shooting code\}

Comments

Loading comments... [loading]
.
Users logged in:

game maker articles, game maker examples, game maker tutorials, gmtutorials, game maker questions and answers, game maker crash course, how to create games