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
-events-
Am I doing something wrong?
It doesn't seem to work.
could you share your capx? or a screenshot of your events?
http://prntscr.com/a9m3hu
Here ya go
which condition did you use in 2nd condition?
Compare Two Variables
Develop games in your browser. Powerful, performant & highly capable.
system compare variable
Doesn't seem to be working.
example
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.