-
Emulating arcade game joystick movement with Joysticks n’ Sliders (or any slider)
Greetings all!
I’d like to hear what you guys think is the best way to what I’m trying to achieve. I have a simple pixel animation of a ship in 2d space in the style of an 80s arcade game, see gif below. What I’d like to do is emulate what the joystick on a real game would do. If I move it slightly to the side, it moves ~20px/sec in that direction. This speed would potentially increase to lets say ~100px/sec when at the farthest position in that direction.
I know the obvious thing to do would be create another joystick that represented the exact position on the screen (ex. top left corner is the top left corner of the screen). Instead of speed it’s literally just the position of the ship. But the speed of movement would be a slave to the interpolation between positions and not consistent.
I’d really like to know what you guys think the best way to do this would be.
Please pardon the bad quality of the gif I threw it together for demonstration purposes.
Thanks guys!
Will
