Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Bluepixel
5
Years of Service
User Offline
Joined: 8th Apr 2019
Location:
Posted: 27th May 2019 12:17
Hi there, I want to set a timer on when a bullet shoots but when I do a wait function or something like that the game freezes until its done, how can I add a cooldown to my bullets?
Amon
9
Years of Service
User Offline
Joined: 30th May 2014
Location: Shropshire, United Kingdom
Posted: 27th May 2019 13:11
This is what I would do. It doesn't delete the sprites though when they go off screen but that's easy to implement.

Basically, when you keep pressed the left mouse button it fires a bullet then resets the global bullettimer.



Win 10 Pro - AMD RYZEN 7 Octacore 3.8ghz - 32GB DDR4 - RTX 2070 8GB

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-04-20 05:45:49
Your offset time is: 2024-04-20 05:45:49