Teaching Stencyl Code


  • Posts: 1
Hi everyone,
This is my first year teaching programming using Stencyl, and I have a few students who have some previous knowledge of programming, and are interested in skipping block-code programming, and going right to actual text-based programming.
Any tips on how to direct them and teach them about actual coding in HaXe and Stencyl?



  • *
  • Posts: 1500
You can have them mix blocks with code.
In Flow:Advanced there are code blocks that they can use in events.

You can use the view code block on an actor or scene event and use that code in the blocks. Use the binocular icon on the right hand side of the screen to show them the code. They can copy-paste pieces of that code and use that in the code blocks to tweak by themselves.

Stencyl engine is on github: https://github.com/Stencyl/stencyl-engine
The blocks guide has most of the blocks in code as well: http://www.stencyl.com/blocks/

Also they can make extensions purely in HaXe, but I guess that is a bit advanced.

When they know other languages they probably don't have use for the 'general' HaXe coding tutorials. They can pick up any Javascript / ActionScript course and see the similarities pretty quick  as well.

Hope this helps!
Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.


  • *
  • Posts: 2235
Another option: When they create a new behavior, there is also the "code mode" option. This doesn't let you mix blocks and text code, but you do get a text editor with better features than the advanced code blocks... or you can use your own text editor.