Joystick Example | by Overma Games

Hello everybody! Overma here :wave:
I have put together a quick joystick bundle, if anybody would like to use it! It works with two objects. It uses an attacher to attach the joystick. I hope this will be helpful!

5 Likes

This is really good. I’ve seen some systems where the joystick indicator only appeared in when the player triggered it. If you’re looking to polish this summore, I would recommend some sort of transparency system for the joystick.

image
Honestly, I think this is the Flowlab Space game mascot now.

Thanks! I do plan to polish it a bit more, so the feedback is really nice!

Yeah, they are preset sprites, lol.

1 Like

How do I make it communicate with the player

@Overma_Games (Sry for the revival)
but I want this to move a regular player (without rotating), How do I do it?
So I want it to run some anims that I have and move accordingly, but I wan’t it to be instant as if i was using W,A,S,D.

1 Like

Hey, its what the topic is for lol. (Sorry for the late reply, I havent been on the forums much sadly.)
There is a couple ways you could do this.
One, would be using the x/y globals… (X < 0 ? -1 Speed : X > 0 ? 1 Speed : 0)
Two, would be using some sine and cosine, which I would pick.
cos(joystickAngle)*Speed
and
sin(joystickAngle)*Speed
You could plug this into a normal top down movement, as well. (Depending on the design.)
I hope this answers it, I can make an example if you would like one too.

1 Like