So I have been trying to find a working virtual joystick and I copied one over from another project but it doesn't work at all, you can't move the joystick. (At least in my testing)
https://www.dropbox.com/s/kzic7ssargn5bhv/Game.capx?dl=0 Main Game
https://www.dropbox.com/s/d4fs5bjm9vzcmkv/ProjectThumbstick.capx?dl=0 Joystick Template
Help would be appreciated!
Develop games in your browser. Powerful, performant & highly capable.
I don't understand what's going on in that template.
Here is a much simpler version:
dropbox.com/s/gz2g128hcvaxzvf/Thumbstick8Direction.capx
I don't understand what's going on in that template. Here is a much simpler version: https://www.dropbox.com/s/gz2g128hcvaxzvf/Thumbstick8Direction.capx?dl=0
https://www.dropbox.com/s/gz2g128hcvaxzvf/Thumbstick8Direction.capx?dl=0
So uh I changed the code but it still doesn't move. The joystick moves but the player doesn't.
New Link: https://www.dropbox.com/s/ag46zqpoulpvcmc/Game.capx?dl=0
You have a much smaller window size and TStick sprite is also smaller, so you need to decrease the deadzone value in event 31, set something like "TStick.d>5"
Also, you don't need to set angle, remove event 37.
Hey, it is kind of working now, but moving to the right a lot bugs out the joystick.
Oh, right, that's because your layout size is bigger than the screen. Here is the fixed file
dropbox.com/s/7p6fgru06zrzvpj/Thumbstick8Direction2.capx