I have a game where there is a Distance of which the player has ran. However, I want something to happen every '5000' the distance number reaches. Ex: 5000, 10000, 15000, etc...
How can I come about doing this?
you could use "modulo"(%)
Assuming Distance is your global variable, the event looks like this:
system:compare 2 values Distance%5000=0 and Distance /= 0 and trigger once then your event
This isn't working. This is my layout
System 5000 = 0
System TotalDistance /= 0
Am I doing something wrong?
It doesn't seem to work.
could you share your capx? or a screenshot of your events?
Here ya go
which condition did you use in 2nd condition?
Compare Two Variables
system compare variable
Doesn't seem to be working.
Develop games in your browser. Powerful, performant & highly capable.
I must be doing something wrong. I am using the runner template to make this game and it has two global variables. I've tried both and neither are playing the sound effect I'm telling it to play.