How to check the current direction?
First: Sorry for this dumb question. I tried everything, but I still don't know how to check if the joystick is dragged to the left or to the right and then set the hspeed of an Object to like 5 or to -5. I tested using global.jdir and lJ.getDirection() but it isn't working. Can you please give me an example of how to do this? Sorry if it is in the documentation and I don't see it. Thank you so much and have a great day!