M
McWolke
Guest
Hey there,
I am working on a top-down Adventure Game, just like Zelda, and right now i am using the built in physics system.
Now i'd like to change it to non-physics and still have the same collision behavior like the physics system, because i have some problems with the physics system (maybe i could fix that, but i have no idea how). what i am trying to do is this wall-sliding-thing when walking against a diagonal Wall: https://i.gyazo.com/e0be30ee354fd704d26d79cd468dd080.gif
i haven't programmed anything yet (still thinking about it if i really should change everything to non-physics) so i can't really show any code to fix here. I just want the idea behind it how it works, so i can code it by myself.
Alternatively:
i asked in another thread how to do different layers/heights in one room. ( https://forum.yoyogames.com/index.php?threads/multiple-floors-heights-in-one-room.930/ )
the idea was to give everything a variable "layer" and only to collide with something if the variable "layer" equals the "layer" variabe of the other object.
but with the physics system i can not disable a collision depending on a variable, can i?
so like when the player is on layer 1 and there is a Wall on layer 2, how would i do it that the player still can walk trough it, but everything on layer 2 can't (like enemies on layer 2)?
if there is a solution for the physics system problem i would be glad, but i can also change everything back to non-physics, if i have to.
thanks in advance for your help!
I am working on a top-down Adventure Game, just like Zelda, and right now i am using the built in physics system.
Now i'd like to change it to non-physics and still have the same collision behavior like the physics system, because i have some problems with the physics system (maybe i could fix that, but i have no idea how). what i am trying to do is this wall-sliding-thing when walking against a diagonal Wall: https://i.gyazo.com/e0be30ee354fd704d26d79cd468dd080.gif
i haven't programmed anything yet (still thinking about it if i really should change everything to non-physics) so i can't really show any code to fix here. I just want the idea behind it how it works, so i can code it by myself.
Alternatively:
i asked in another thread how to do different layers/heights in one room. ( https://forum.yoyogames.com/index.php?threads/multiple-floors-heights-in-one-room.930/ )
the idea was to give everything a variable "layer" and only to collide with something if the variable "layer" equals the "layer" variabe of the other object.
but with the physics system i can not disable a collision depending on a variable, can i?
so like when the player is on layer 1 and there is a Wall on layer 2, how would i do it that the player still can walk trough it, but everything on layer 2 can't (like enemies on layer 2)?
if there is a solution for the physics system problem i would be glad, but i can also change everything back to non-physics, if i have to.
thanks in advance for your help!