Help with a pushing block puzzle

Godot Version

4.3

Question

I am working on a game with a lot of experimental mechanics that I haven’t tried before. I want to make a puzzle where a plug in the wall (big block) will eject itself after a short while and the player has to push it back in.

I’ve tried using paths, etc, but i’m not sure how to go about this. Anyone able to push me in the right direction?

This description reminds me of puzzles the Portal game where you put stuff in the right place, namely the cubes.
The way I would do the “goal” area is by using the Marker2D, which goes where you want the player to push the big block. Then there can be a script attached to the big block which can detect if it is within a certain distance from the marker to allow the win state.

1 Like