N
NeZvers
Guest
As a material for tutorials, I wanted to give a challenge for myself and make a platformer with the bitwise calculation (no floats) and ds_grid. I want to avoid any loop and achieve it only with if. Regular block collision work like charm, but I wanted to push it further with slopes and moving with the sprite middle on slopes. There's bool for block/ slope collision systems.
Blocks collision work and is decoupled with if(!useSlopes).
1) its ds_grid collision and slopes have a height map calculation script that returns value of the pixel above the slope.
2) if grounded, the player should slide on slopes (kinda works but glitchy)
3) suspects - slope_slide(), ground_check(), collide_verticaly() (originates in set_position())
I reworked the slope section from the ground several times and can't find what's the problem.
EDIT: I solved the problem. As the TheSly said - time is too precious to help out. I'll think over if I want to share my project I spent my time.
Blocks collision work and is decoupled with if(!useSlopes).
1) its ds_grid collision and slopes have a height map calculation script that returns value of the pixel above the slope.
2) if grounded, the player should slide on slopes (kinda works but glitchy)
3) suspects - slope_slide(), ground_check(), collide_verticaly() (originates in set_position())
I reworked the slope section from the ground several times and can't find what's the problem.
Code:
Nothing here to see.
Code:
Nothing here to see.
Code:
Nothing here to see.
Code:
Nothing here to see.
Code:
Nothing here to see.
Code:
Nothing here to see.
EDIT: I solved the problem. As the TheSly said - time is too precious to help out. I'll think over if I want to share my project I spent my time.
Last edited: