Hello
I'm working on jigsaw puzzle, so I'm using nested for to paste object on a canvas, in early test it's a success. The puzzle image and the pattern is pasted nicely.
So I add more code for size, and position for the canvas and the object that will be pasted on canvas. Also because there'll be a lot of picture I made the sprite to Load from URL instead of using animation.
This is where things going weird:
1. The picture is pasted, but the pattern is not.
2. After some check, I found that the pattern is not pasted after Load from URL request. If I place them before, the pattern will be pasted. So this lead me to use breakpoint to debug.
3. I use breakpoint to debug, but the result is different. There's no error and the pattern is pasted on canvas. But if I try without breakpoint the pattern is not pasted on canvas
Without Breakpoint
With Breakpoint
On Start of Layout
Generate Puzzle function