1 members found this post helpful.
My autofire of choice, in recent years, has been to have a secondary delay variable.
If NoFire then Delay=0;Trigger=0
If Fire
Trigger=Trigger-weaponSpeed
If Trigger<=0
Shoot bullet
Delay=Delay+1
Trigger=Delay
Endif
Endif
Basically, the longer the player holds the fire button, the slower the weapon gets, so you get a nice middleground between button mashing and holding. Worked well the first time I implemented it, so have used it LOADS of times, since
Last edited by Jayenkai; 03-21-2015 at 02:09 PM.
Reason: Bad coding!!!! There was a bug in it!!!!
Jayenkai : Making unpopular games for over two and a half decades!
Bookmarks