Peace Unto You! I’m making this game and I need to know how to increase speed by a certain amount every 5 seconds. I got the first part as in setting up the locals, but it’s the functionality I’m having issues with. I got it to where at a certain moment the enemies increase their speed but it’s not an overtime thing.
Please help me!
Thank you, we’re very grateful!
local initial_speed = 200
local speed increase_rate = 50
local speed increase interval = 0.1
local speed timer = 0.0
function update (self, dt)
speed _timer = speed timer + dt
if speed timer s=
speed_increase_interval then
initial speed = initial
_speed +
speed increase rate
speed timer = 0.0