Mobile Touch Controls

ArsonMuffin

  • Posts: 4
Hello ^_^ I'm just getting started on Stencyl and was wondering if somebody would be kind enough to help me figure out how to make a set of arrow keys for a mobile game. I can't seem to get my actors attributes to "talk" to each other (such as having a click on one actor, the arrow key, start a script in another, the player) and my google searches have yet to be fruitful. Is this something I can program at the actor level, or does it need to be at the scene level? Thank you!

colburt187

  • *
  • Posts: 2394
The way I do it is set up the controls for keyboard, then use the "on screen button" behaviour that comes with stencyl. If you attach that behaviour to your button then you simply tell the behaviour what keyboard button it is simulating.

ArsonMuffin

  • Posts: 4
Good idea, it worked! Thank you~