Hello, i'm making slide puzzle using tile behaviour and i can't make winning mechanics. All tutorials just show how to meke tiles moves but i can't find any about winning mechanics. I tried comparing positions but it didn't work. I use 8 instances of one sprite with different frames as tiles.
Thank you for reading
You can do something like this
I forgot to add "isSolved=0" condition to the first event. You don't want the function to run again after the puzzle is solved.
I tried it but my isSolved variable is 1 from the beggining of layout, do you have idea what can be the problem?
Develop games in your browser. Powerful, performant & highly capable.
Ok, i solved it, thank you very much, very good idea ❤️