Move non-humanoid character via mobile thumbstick?

I am making a top-down tank game where the player controls a custom character without a humanoid. I’ve nearly got the game in a Beta stage, and now want to make it support mobile. So you have a better idea, this is how my game looks:

The player controls the tank with WASD, the rotation with mouse, fire on mouseclick.
For mobile, I want a thumbstick on the left to control movement, a thumbstick on the right to control rotation (and fire continuously while the player is touching the thumbstick).
But at the moment the thumbstick isn’t even showing up, probably because there’s no humanoid character. The tank only rotates when touching anywhere on the screen.

Where do I even start?

https://create.roblox.com/docs/reference/engine/classes/ContextActionService#BindAction

ContextActionService and bindaction should be a step in the right direction

I know about ContextActionService, but don’t really see how I can use that to make thumbsticks?

Try using Enum.PlayerActions for movement instead of using Enum.KeyCode.

Maybe you should make your own thumbstick to fit the theme of your game. I think you’d learn a thing or two about math!

2 Likes