Not sure if this has been mentioned, but would it be feasible to have an input under the above mentioned behaviours that allows a user to input the keyCode (or associated key) that (s)he wants to use and attach an action to it. It would help non Javascript savvy users.
Thanks, I do agree this is missing. In general the problem is that users will likely want to have different keys do different actions, and not just one key. But we’ve since solved a way to do multiple actions in response to a general hander with the Custom Behavior UI, so there’s an easier way forward now.
The screenshot above was a mockup for the feature. It isn’t implemented; the way to do filter by a keyCode is to use a Run JavaScript action and then conditionalize with code based on the event.keyCode field. example:
if (event.keyCode == 37) { // left
hypeDocument.showSceneNamed('Unititled Scene2 ', hypeDocument.kSceneTransitionCrossfade, 1.1);
}
Sometimes you'll find crazy members like myself that like to mess with the UI when trying to explain a new feature that we'd think would be of benefit.
As far as I'm aware, there isn't any "tutorials" here in the forum specific to "platform gaming". There might be something out there in web land.
There are however some examples by some members that incorporate game playing inside of Hype. So, plenty of examples to look through but not a "tutorial" as such. Try the search in the top right
Yes, using the On Key Down, On Key Up, or On Key Press events in the Scene Inspector/Layout Inspector. Those are the events that will have the event.keyCode filled in.