Here’s another usage example. That shows a Hype approach using the API
textInputListener-v2.zip (22.0 KB)
You could adapt this to check for input and then show a specific scene.
For example:
text.addEventListener("keypress", function(event) {
if (event.keyCode == 13) { // Enter key
if (text.value == "12345") {
hypeDocument.showSceneNamed('Page2', hypeDocument.kSceneTransitionCrossfade, 1.1)
} else {
hypeDocument.showNextScene(hypeDocument.kSceneTransitionCrossfade, 1.1);
}
}
});