How do you use the Game Controller feature?

daverave1212

  • Posts: 44
Hello,

I upgraded to the new version of Stencyl and noticed there's this new thing, Game Controller.
I can't figure out how to use it and I couldn't find anything useful online.

I see I can run Haxe code in the bottom half of the Script tab, but I don't seem to be able to interact with in game code.
Is there a way to set up custom commands or something, or modify variables on the fly?
What kind of scripts can I run?

Also, the log part; what is it for?

Thank you!


Luyren

  • *
  • Posts: 2807
I can tell you about the log part. Go to "Run > View logs through game controller" to view logs there instead of in the log viewer. When viewed this way, you can click on any log output in the game controller and quickly move to the relevant behavior or event in your game.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.

daverave1212

  • Posts: 44
I can tell you about the log part. Go to "Run > View logs through game controller" to view logs there instead of in the log viewer. When viewed this way, you can click on any log output in the game controller and quickly move to the relevant behavior or event in your game.

Thanks, that's great! A better log system is a good addition!

Anything else?