Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hi Chris, I am trying to recreate this game, but whenever I hit play, the pieces immediately fall in the -y direction out of view of the camera. How did you prevent this?

Unity's 2D physics engine has a gravity setting. The default value is set to `(0, -9.8)`. You'll want to change it to `(0,0)`.

More about that here: https://docs.unity3d.com/ScriptReference/Physics2D-gravity.html

I'm not sure if this is _exactly_ right, but you can  probably put something like this in one of your `start` functions :

```
Physics2D.gravity = Vector2.zero;
```

Thank you! Also how do would I adjust the sensitivity of the overlap detection between the pieces? When I opened the game in Unity and played, the pieces would collide and push each other when they were barely overlapping.

I'm not sure whether you can tell the physics engine to allow "overlaps". Your best bet might be to make your colliders just a little bit smaller than your sprites?