So......
This week, we added some basic things to our game.
The basic movements that we have right now for our main character are run and jump. We also added a player camera, and the sprite sheets for the character. Personally, I like the idle one the most because it gives the game a windy effect.
Additionally, we made three worlds and added “portals” that can transfer the character from one world to another. I’m not really satisfied with how the character enters the portal, so we will probably change it up later.
Furthermore, we added our first enemy to the game - SLIMES.
The states that they have are idle, wander, and chase.
However, we faced a problem where when the “slimes” wander around, they would sometimes fall off the edge of the tiles and drop to another area. (Since the game is side-scrolling, the tiles are of different heights for players to jump around) We want each slime to be able to wander in their own specific area and also to stop chasing the player if it requires the slimes to jump down or up.
So, I made another tile set, and set each cell to 4 * 4. (The world map tiles are 16 * 16) Using the mini tile set, I made boxes around each slime and assigned this tile set to the “barrier” layer, which only affects the enemies. Therefore, the slimes can’t leave the box because they would collide with the tiles, and the player can move around freely. I also made the tiles invisible so it doesn’t show in the game. Initially, I was going to make collision shapes on the edges to solve this problem, but then the tile set method worked much better. Now I can just draw tiles around enemies to limit their moving space, and the tile box size can be different for each enemy.
- Katherine :)
Top comments (0)