How to increase speed in runner tutorial?

Hello.
I’ve done runner tutorial and want to increase speed constantly over time.
speed sets a string from the script:go.property(“speed”, 360).
How i can do it?

In update you write something like: self.speed = self.speed + how much you want to add speed by

you can always do something like

function update(self, dt)
self.speed = self.speed+dt
end

This is just a small extract I created to show how you can increase the speed over time, but you might not want to increase the speed so soon, so try dt/2 or some thing like that.
BTW: You can always interfere with go properties using self.property_name (the “speed” part of go.property(“speed”, 360) is actually its name.:slight_smile:

1 Like