I want to trigger an action (reloading) after every 10 bullets are fired, by using (reload if bullets fired=10*every whole number), so I reload after every multiple of 10 bullets are fired (like 10,20,30...)
Thanks!
Have a variable BulletsFired that you add 1 to after each bullet is fired. Have a condition that checks the variable, and if it's 10, reload and reset the variable. If you want to keep the count, have the condition check (BulletsFired % 10) = 0
Develop games in your browser. Powerful, performant & highly capable.
Thank You!