Using Platform Character Behavior and platforms with type “Jumpthru platform” I found a problem. When the Player try to move from the Jumpthru platform to a Platform he falls if the Jumpthru platform is moving with force at a 270 degree angle.
Steps to reproduce
Create a player with Platform Character Behavior
Create a platform with type “Jumpthru platform”
Create an event to move the jumpthru platform with force at a 270 degree angle, like this:
Create an platform with type “Platform” and insert it into the scene next to the Jumpthru platform:
Put player above of Jumpthru platform (scene will look like this:)
Test pressing the player to move to the side (don’t press down)
Player will fall when the Jumpthru platform reaches the height of the Platform, like this:
Project showing the bug
Another informations
I tried a different collision mask for player and platforms, tried with part of the Jumpthru platform inside the platform, I disabled the Jumpthru option for the player… nothing worked. So far, I haven’t found any workaround.
I found something that might be interesting. When I tried to create another project to reproduce it, I wasn’t able to. The project I shared came from my original game. Perhaps some people won’t be able to reproduce it easily, as apparently the distance traveled by the platform influences it.
My guess is that: during the movement of the “Jumpthru platform” using force, certain distances can reach positional values that, compared to the position of the “solid” platform, allow the player to move when it shouldn’t and he falls.
Note: changing the platform speed to high values like “120” allows to player walk and don’t fall.
Sad discover, haha! I don’t know what i gonna do with some levels of my game
I hope they manage to resolve it.
And since you mentioned that you’re also making a platformer game, there’s a “bug,” or perhaps it would be more accurate to say “limitation,” regarding jump-through platforms: Jumpthru Platform don't works sometimes
If I find a workaround, I’ll come back to this post and explain how to do it here. But for now I’ll keep doing my game.
I am now even more convinced that the problem lies in the decimal numbers of the Y position of my “platform” object with Jumpthru. I did more tests and “moving” the Jumpthru platform by changing the position with integers works normally. But if I change it with decimal numbers will bug.
So, the workaround is: use the last event like I showed in the print before to move your jumpthru platform if you got this problem. If you want it to move more slowly, you can use a variable, like this: