Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Game development stories & opinions
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.