Tilevania 2D Course - Add Mobile Controls

I’ve tried to add an onscreen stick to the game as it’s already wired into the input manager but i’m getting some weird behavior.

You can see a video of the on-screen stick not working correctly at RPReplay Final1671648295 GIF | Gfycat

This works fine for me when using keyboard controls.

Please see below my OnMove() code, my movement code and my on screen stick

Screenshot 2022-12-21 at 18.55.58

Hi Mike,

Welcome to our community! I’m sorry for the late reply. For some reason, I missed your thread. I hope you had great holidays. :slight_smile:

Regarding the onscreen stick, I’m afraid that I don’t know anything about it, so I won’t be that helpful. The first thing you could do is to log the user input values into your console to figure out what values you get when moving the stick on the screen.

If you cannot find the issue, please feel free to ask our helpful community of students for advice over on our Discord chat server. Maybe somebody implemented the same stick as you. Let them know where you got it from.

Privacy & Terms