How can i stop making a image go through walls/blocks?

I’m working on a 2d platformer thing in cospaces with a image and I want it to stop moving when it gets to a block. Is there a way to make this possible?

This might give you some clues - it’s one way to achieve this:

Another could be to use collision events to stop the image - it really depends on the nature of the game.

Hope that helps!

Geoff @ TechLeap