After “Bring to Front” block, (self)( x position) is stored as zero

Welcome to the forum, AlbertEinlime!

There is some more information on that part here (though it relates more to the runtime of individual blocks and not in relation to When containers)

For the When containers, the idea in theory is that each is simultaneously checking whether its condition is met and running the code inside — though in practice, there is an order of execution which tries to replicate that

ThinBuffalo made some pretty helpful diagrams here which go through execution order for Whens. (This is from an older post which I think was a draft, and unfortunately the archive/deprecated category is restricted to trust level 2 and above, but I have quoted parts of the post)

https://forum.gethopscotch.com/t/tbsrs-hopscotch-coding-topic/25409/966?u=t1_hopscotch

3 Likes