Different behavior for contact with each edge

I see the block, "If on edge, bounce". But suppose I want different behavior for different edges (of the Stage)? For example, "If on top edge, bounce" but "If on left edge, stop". And so on.

So far, the only way I can see to get this behavior is to test the x and y positions of the sprite.



Yup, that's one way.

Another thing you could do is make four sprites, one for each edge, with vertical and horizontal lines as costumes, and use IF TOUCHING [top sprite] and so on.

But there's nothing wrong with using the sprite position, if you remember to adjust the edge coordinates by half the height or width of the sprite so that you catch the sprite's edge against the stage edge, rather than the sprite's center.