edited December 2014 in ORK Support
How to perform an action from a button?
I want use some button on GUI to trigger action such as attack , ability , open menu, exit in mobile game , Mobile game no input key to do click.

I also saw "Control Maps" setting in editor, Now I want know how to trigger the action from button in mobile.
such as,
button1 --> magic
button2 --> attack
button3--> open menu
button4--> open setting dialog( stop music)

Post edited by ZhaoYu on
  • edited December 2014
    That is easily done via the control type HUD.
    Go to Menus -> HUD, create a new HUD. Let's call it Button1. In the HUD type, put in Control and then go down to the Add Control Element and click add. Put the Control type to Positive Button and for the Input Key section, put in the key that is used for firing the magic action. Tweak the display conditions and the rest of the options to your liking. Do the same for Button2. Just create a new HUD, a new GUI box and switch out the input key to the attack key. Same for the open menu button and button4.
    Post edited by Shadow_Fire on
  • @Shadow_Fire
    thanks for much :)
    I shall go to try.
Sign In or Register to comment.