Face escape


good job for the nice game.

Did you want infinite jump?

I sorta wanted gravity but this is fine!

The physics seems to stop when you move in the air.

Yeah, gotta fix that… but there is an invisable barrier in someparts

Hi @purna079,

I liked your game so much, I just wanted to implement a few improvements; I hope you don’t mind.

The invisible barrier were the ‘black’ walls at the top of the screen; so I made them visible. Also about the jumping, you set the character to move using the controller (x & y), which meant that you could float through the game by continuously pressing up. I removed the ‘move by y’ and have the player jump in a ‘controller up’ event. I added a variable ‘jumping’, that is set to ‘true’ (as you fall from the sky), and becomes ‘false’ when you overlap a wall (at the bottom). In the controller ‘up’ event, I check that the player is not already jumping, and have the player jump again. Since you have set the gravity (acceleration y), when jumping you only need to set the ‘velocity y’ to a negative value (to move up the screen).

There is something that I found strange in the game. You can land on a blue/purple tile. However when standing next to a ‘red faced’ tile (no even on top), it would end the game. You have a on overlap event for the ‘pink’ colored tile, but the player is not even touching it.

Hi Joey, I am wondering if you have time to look at the above mentioned ‘overlap’ issue. Is this a bug in the game or in the color-coded tilemap extension? The player does not even overlap the ‘pink’ colored tile, but when it gets close to it, it triggers the event. I thought maybe the sprite was wider than it appeared, but it is also 16x16. Could it be that overlap events for walls in color coded tilemap work differently than overlapping in sprites (i.e. the entire sprite dimensions are compared vs only the visible pixels)?

If you want some more ideas on how to animate the player (when moving, jumping, facing left and right), take a look at this ‘template’ game I just made:

1 Like

I don’t mind at all! Thank you! I just don’t know how to fix that bug… thanks anyway!

1 Like

I fixed the problems by using regular tilemaps and not color-coded. hope you guys can fix that bug.

Thanks to @cosmoscowboy for pointing out the bugs. enjoy!

1 Like

This looks about as expected, the sprite wall collisions are based on a bounding box of the sprite, not the exact overlapping pixels - it looks like the arms are a bit wider than the rest, so its colliding when the arms start to be above the danger pixels

1 Like

Thank you for replying on this. I was expecting that it had to do with the bounds of the sprite, and not the visible pixels.

Sorry to be pedantic about this, but it seems that the check for a colliding wall seems to occur a few pixels earlier than actually overlapping. When a player lands on the ground, with a wall that does not have an overlap event, then there is no gap between the sprite and the ground.

When I enable the overlap event (the brown colored tile is where the player lands on the ground), the player lands a few pixels higher than the wall.

Here is an example of this:

I hope they can investigate whether this is an issue, as the game I am starting to develop is using the color-coded tilemap extension. Good to know that this issue does not occur in the regular tilemaps.

Thank you all for helping me!