L
LordNoob
Guest
Hi!, excuse the poor english.
I dont know if anyone is following friendlycosmonaut tutorial in how to make a farming rpg, my question comes from there:
For tje transition between rooms she uses an enumerator for declaring directions, (90 is right, 180 is down, 270 left, 0 up).
Then she creates an object: obj_transition
Then she uses variables in the creation code of each instance of obj_transition, the one that matters is "playerfacingbefore" with that variable if obj_player is coliding with obj_transition in ( lets call it "x direction") then the transition occurs, if collides but is not the right direction, there's not a transition.
PROBLEM IS: she uses 4 directions and a grid format. My game has 8 directions, so when i collide with direction down and left, the transition doesnt happen.
How can i make the transition happen when the player is walking down, or down and left, or down and right?
Weird thing is: the same doesnt happen if the transition is "right, down" the transition does happen, guessing is because the order in wich the variables right or down were declared, dont remember from the top of my head.
Also im a big giant noob in this, so if you could help me with code i'll apreciate that very much.
Thanks in advance for any help provided.
I dont know if anyone is following friendlycosmonaut tutorial in how to make a farming rpg, my question comes from there:
For tje transition between rooms she uses an enumerator for declaring directions, (90 is right, 180 is down, 270 left, 0 up).
Then she creates an object: obj_transition
Then she uses variables in the creation code of each instance of obj_transition, the one that matters is "playerfacingbefore" with that variable if obj_player is coliding with obj_transition in ( lets call it "x direction") then the transition occurs, if collides but is not the right direction, there's not a transition.
PROBLEM IS: she uses 4 directions and a grid format. My game has 8 directions, so when i collide with direction down and left, the transition doesnt happen.
How can i make the transition happen when the player is walking down, or down and left, or down and right?
Weird thing is: the same doesnt happen if the transition is "right, down" the transition does happen, guessing is because the order in wich the variables right or down were declared, dont remember from the top of my head.
Also im a big giant noob in this, so if you could help me with code i'll apreciate that very much.
Thanks in advance for any help provided.