How created a virtual joystick in android?

Apamaster

  • Posts: 117
I want to create a virtual joystick in android, but I can't find any example of how to apply it.
How to put the buttons, how to detect if it is pressed or stopped pressing etc. any tutorial or demo exists to see?

Luyren

  • *
  • Posts: 2705
http://www.stencyl.com/help/view/mobile-joystick/
That note at the top about the extension is out-dated, as that extension has been integrated into the toolset for quite a while now.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter

Luyren

  • *
  • Posts: 2705
Stencyl's default joystick blocks are green, not gray. I'm assuming yours are from an extension, so whatever your error, that's on the extension.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter

Luyren

  • *
  • Posts: 2705
I can't comment on it working on Flash, but either way that's not really relevant. You'd have to elaborate on what you mean by "does not work", for I can use it without issues on HTML5 and Android last I tested.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter

Apamaster

  • Posts: 117
this is my code.
But in android it does not work, when pressing on a directional it does not allow me to press on any other button. Only one button can be pressed at a time. I have not found any tutorial on how to create buttons to use in android is that possible ??

« Last Edit: May 06, 2021, 09:06:27 pm by Apamaster »