Basic Level Layout
I implented my basic level layouts. I created some walls using tilemaps and made it so my player couldn't go through them using tilemap colliders and rigidbodies. One issue I had was that the player could hit the wall and then spin. Then the player would mantain the spin until they hit a wall in such a way that it canceled out the spinning momentum. I tried changing the collider on my player but that didn't help so I went back to the box collider I was orginally using. I then fiddled with the tile map collider on my walls but ended up reverted the changes as that also didn't fix the issue. I eventually fixed it by freezing the z position rotation on my player sprite. However, this created a new problem. The player would get stuck halfway down certain walls but only when it was the left hand side of the sprite touching. This didn't make any sense to me until I realised the player sprite is not a perfect square and that may be affecting the collisions. I put an edge collider on the player and positioned it so it covered the left side. This fixed the issue. I then added coins, the exit sign and enemies to each level. I worked out my placements of everything and made it so the coins and other objects stopped dissappearing. I had to make all my objects be on layer 2 because for some reason on layer 1 they dissappeared every so often. I got some feedback about my level layout. It was mentioned that my player sprite is not a perfect square. I am working on a fix to that. It was also mentioned that my player can't move diagonally. This is intended as it may make the game too easy otherwise. Finally it was said that you can see specks of colour outside my level in the background. This was not intended and will be fixed.
Files
Escape the Coloured Squares
Status | Prototype |
Author | AdamRutledge |
Genre | Action |
More posts
- DocumentationOct 15, 2020
- Game Testing Checkpoint 6Oct 10, 2020
- UI ElementsOct 02, 2020
- Game TestingOct 01, 2020
- GraphicsSep 25, 2020
- Enemies/interactionSep 18, 2020
- Player MovementAug 28, 2020
- Game ConceptAug 27, 2020
Leave a comment
Log in with itch.io to leave a comment.