B
boomie
Guest
I'm having a lot of troubles with making a simple platformer engine which is flexible and has no bugs.
All the tutorials I found use place_meeting or instance_place, but these function are not good for me, because I want the player to be able to detect collision with the floor while standing in front of a two way platform.
I don't want to find a way to solve this problem using place_meeting because I will not feel like I have full control over my code and it will be harder for me to change the code and add more features. I really want to make it work using the old collision_ functions.
I was not able to make a flexible pixel perfect engine with collision_rectangle and collision_line. The main problem is that I'm not using a whole number for gravity, and all the systems for vertical moving I tried made the player either hover one pixel above the ground or sink one pixel into the ground.
It could be great if someone could share a tutorial, an engine or show me how to build it right. I can also share the engines I tried if someone would be willing to look at them and find the problem (It's not a lot of code).
Thanks!
All the tutorials I found use place_meeting or instance_place, but these function are not good for me, because I want the player to be able to detect collision with the floor while standing in front of a two way platform.
I don't want to find a way to solve this problem using place_meeting because I will not feel like I have full control over my code and it will be harder for me to change the code and add more features. I really want to make it work using the old collision_ functions.
I was not able to make a flexible pixel perfect engine with collision_rectangle and collision_line. The main problem is that I'm not using a whole number for gravity, and all the systems for vertical moving I tried made the player either hover one pixel above the ground or sink one pixel into the ground.
It could be great if someone could share a tutorial, an engine or show me how to build it right. I can also share the engines I tried if someone would be willing to look at them and find the problem (It's not a lot of code).
Thanks!