This should be super simple, I'm almost ashamed to ask. I thought just putting variable++ in a loop of some sort might work, but I haven't learned loops yet.
I'm making a game in unity and my ship fires too quickly. I need a timer for the firing mechanism. I already have it set up. First, a variable(canshoot for instance) is initialized to 0. Then(with the help I get from you guys), I have the variable increase steadily. Then I check if space is being pressed, if it is, I check if canshoot is greater than or equal to 10. If canshoot is greater than or equal to 10, it creates the bullet instance which has it's own script, then sets canshoot back to 0 to restart the cycle.
If you have a better idea, feel free to share, but please answer the question because I'm pretty sure it will work fine. I'd show you the code, but I don't think it would make sense to you unless you use Unity too.