Hello, i have been trying to get a slope collision(top down, just regular 45 degree slopes) for a while but as i am not very good at collisions it is hard without rewriting alot of whats written. as of now i have
x += (place_empty(x+4,y)*keyboard_check( vk_right) - place_empty(x-4,y)*keyboard_check(vk_left) )*4;
y += (place_empty(x,y+4)*keyboard_check( vk_down) - place_empty(x,y-4)*keyboard_check(vk_up) )*4;
as my collision code, and i was wondering how to have this as the zelda style slope code also. what i mean by that is if im hitting a slope going up and to the left, and im just holding up, i will kind of slide against the slope at a diagonal way. does anyone know how to insert this in with the code above? also i have 4 different objects with the 4 directions of slopes. so yes. if anyone knows how to solve this please help or if anyone needs more information i will be happy to give some.