Hi again.
Many people know that in MMF, the every 1/100th second isn't exact. It's almost 3 times too slow. And every 1/100th second means, in mmf, same as Always. Is it possible to make a code that adds 1 to a counter every second hundredth?
I would be greatly happy if this was possible.
You can only do something about every 1/50 second, as MMF on average performs 50 loops a second. I think your only solution is to always add 2 to the counter instead of 1.
Ah... all right... I will do something for that. Because i have a timer based custom platformer that i would like to fix, i will fix its timer things with MMFs loops! Anyway I'm going for a trip of 7 days so i won't try it just now...
MMF reads the events 50 times per second, so yes 0.02 of a second. Note however that if the game slows down, events start to be read more slowly in sync with frame drawing. So at a slow part it might only be reading 30 times per second. If you're always adding to a timer this means your timer slows down too!
'Machine independant speed' in Runtime properites, when enabled, stops this synchronisation: events are always read 50 times a second, and if the game starts to slow down, the screen is drawn less frequently to compensate and keep events running 50 times/sec. However this can result in choppy display, but your timers will still be accurate.
Because i have a timer based custom platformer that i would like to fix
To slow down the jump speed with a custom engine i didn't change the 'code' for the counter or change the timer in any way.
My always event looks more like this
Always - set Y to Y of( "mask1" ) + value( "jump" ) / 4
do you get that? That slows down the speed which the character rises and falls whilst keeping jumps the same height.
Sorry if ive written that in a confusing way.