I have a swipe detection my GUI and JavaScript for mobile , as an attack button of RealTime Battle it Want to take advantage of . I have tested the demo project attached .
· I made HUD from Menus -> HUDs. (ID = 4 , Name = MobileSwipeHudTest) · I already have a My GUI, I have turned on the [Display Conditions] the [No Display] · Because I want to set as the AttackKey this [No Display] HUD, Control Type -> Possitive Button Input Key -> 6: AttackKey
· Added the following to the script of my GUI ( so JavaScript, "import " . Not "using") import ORKFramework; import ORKFramework.Behaviours;
· From here , my script or will that you have pressed HUD How do I ?
< Tried it > HUDControl.Tick (); Are you sure you want to use with ? I do not know well how to use ... I had Error. ---------------- BCE0020: An instance of type 'ORKFramework.HUDControl' is required to access non static member 'Tick'. ----------------
Should I use the ORK.HUDs.SetData? ORK.HUDs.SetData(Correct answer What to put in the argument?)
Well, you're hooking in on the wrong place - you don't need to set the input in the HUD, you can do this directly in the Input Key. You can find out more about this in this how-to, the code examples are at the bottom of the page.
In short, you can use the following code to set the input:
You can find out more about this in this how-to, the code examples are at the bottom of the page.
In short, you can use the following code to set the input:
ORK.InputKeys.Get(int index).SetAxis(float value);
So, in your case, that would be:
ORK.InputKeys.Get(6).SetAxis(1);
I decided to use towards the input.
■iOS
https://itunes.apple.com/us/app/id679133055
■Android
https://play.google.com/store/apps/details?id=com.WabiPlant.SAMURAI100SlashLite
New ORK Battle Game
■iOS
https://itunes.apple.com/jp/app/id1403510381
■Android
https://play.google.com/store/apps/details?id=com.Company.AgentFight