Chicken Run Template Controller
I've been trying to do this for a while now to no avail, but is it possible to make the character controller for the Chicken run game template to respond to facial interactions rather than touch? So say.... Open mouth to start game... And Smile to make the chicken jump?
Just wondering if anyone has tried this yet successfully.
Thanks in advance!
Hey DCAN,
You can actually do this pretty quickly just by changing 3 lines of code.
To make the game start on mouth open, go to GameController.js and change line 146 to:
script.createEvent("MouthOpenedEvent").bind(function(eventData) {To use smile controls instead of tap, go to CharacterController.js and change line 186 to:
script.createEvent("SmileStartedEvent").bind(onTouchStart);and line 192 to:
script.createEvent("SmileFinishedEvent").bind(onTouchEnd);You can change those event names to whatever you want to use, and it should generally just work.
Let me know if you have any more questions!
Jacob
This worked out perfectly, thank you so much!