I started to convert my project from MMF to Construct and right away i got stuck
I have a 5 instances of sprite (kind of counter) with 5 frame animation, and a private variable "anim_var".
What i want to do is to make a random number for the "anim_var" every time when Layout Starts
[code:25sjig2g]Always -> set "animation frame" to "anim_var.
Start of Layout -> set "anim_var" to "1+random(5)"[/code:25sjig2g]
Everything is fine, but it set's a random value for the random instance.
Every instance Instead of showing the same frame animation, shows random one.
In MMF it was fine, all were showing exactly the same - i just have problems to set them to show diffrent frames.
In Construct is completly opposite
- i can make them show diffrent frames, but i can't set them to show the same.
and one more thing
Is "on animation finished" working?
MMF - works - something like thit: 2 sprites - "door" and "player":
[code:25sjig2g]+player colides with door, press Up Arrow -> door "open" animation plays
+"open" animation finished -> player "enter" animation plays
+"enter" animation finished -> door "close" animation plays
+"close" animation finished -> player set position (to something else)[/code:25sjig2g]
It's all very simplified but you shoud get what i mean.
In Constructor when i set "on animation finished" nothing happens.
I'v tried to play with animation properties, but it's like one big bug
I've also tried to set "on animation frame" like"
[code:25sjig2g]+animation frame equals 20 -> do something[/code:25sjig2g]
but it do nothing.
And the best thing is when i finally make it working I pressed the save button to save my project....and it stop working
I spend all weekend trying to solve that and nothing, and I have no idead what to do...