if you play that demo notice how at the start of each level these diamonds dissapear. how do i recreate this I have tried but it does not look nearly as smooth as this. please help!
Develop games in your browser. Powerful, performant & highly capable.
Here is my version:
I'm using a global sprite on a global layer, which is not destroyed when you switch to another layout.
lol, I came back to post my version and saw you beat me to it! :)
amazing similarities... I even chose the same file name! I did it with just on one layout - and used functions to call the transition whenever needed, and used a global variable to trigger the completion of the transition (so you know when it is safe to change the scene or call another layout...
I like the way you used a global layer.
AllanR Your example is much more refined, although 22 events is probably a bit too many :)
I guess it can be done even easier if instead of creating sprites in runtime, we put them all on a global layer in the editor, add an instance variable "Delay", set different delay values for different columns. And then simply start tween for each instance after a delay. Should be just a few lines of code.
Hi dop2000 and AllanR thank you so much for your help its brilliant!! Is there a way to create this in construct 2 as it does not have the tween behaviour?
There is LiteTween addon which is very similar.
Or you can change size in "On every tick" event, or with Sine behavior.