Useful Code Snippets


  • Posts: 2262
Would anyone care to share their most useful code snippets?

For example:
Code: [Select]
Engine.STEP_SIZE =; Used to speed the game up or down where "_GameSpeed" is a number attribute.

10 is default (100fps) A lower number speeds up the game, a higher one slows it down. 1 is minimum value.

« Last Edit: November 29, 2017, 03:17:34 am by JeffreyDriver »


  • Posts: 2262
Adding another:
Code: [Select]
E.g If [actor.activePositionTweens] = 0

Checks if an actor has finished tweening. Useful for move-to-grid type behaviours.


  • Posts: 504
Just a thought, this thread should be better located in the Shared Resources forum.


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


  • *
  • Posts: 2645
That's the Print block from stencyl.

Probably the most useful and underrated function :D I guess it's not a "snippet" but it is definitely useful!