[ Help ] Box pushing platformer game?

Yello! I’ve stumble upon this game (video:

) and was thinking is it possible for us to create the similar gameplay?

basicaly: a platformer game; you must push boxes to fill out gaps/hole in order for your player to cross the road
if its possible, what kind of function do i use? could collider do the job?

You could absolutely make a game like this, I’m not sure colliders are necessary for this, you could just store everything’s position in and object type in a class and just calculate your position relative to other object’s positions and react accordingly.

1 Like

I fully agree with @ here. If it’s a grid based game, save yourself a lot of headache and do not use physics for this. You know where everything is in the grid; you know how you want things to react when you move into a given grid cell; just write some code to make them react that way.

(Incidentally, these types of games are called Sokoban games. I spent too many hours as a youth doing the sokoban levels inside Nethack…)

i’m relatively new in this coding thing, could you explain more?