As of late 2021, we are in the process of updating Stencylpedia and fixing up outdated & broken content. Thanks for your patience!







Abigayl's Interactive Tutorials (Part 3)

by Joe (Updated on 2012-07-21)

Tutorial 3 - Advanced Controls, Spawning



  • Game Center is now Dashboard
  • Controls are now found in the Settings button at the top
  • Now need to use "Add an Event" at the top left to make the headings
  • The behavior receiver is now an event (Add Event -> Advanced -> Custom Event)


Liked this one? See them all!

Part 1: The Basics

Part 2: Attributes, Saving/Loading, Kongregate API

Part 3: Advanced Controls, Spawning

Part 4: Mouse-based Shooting, Collisions and HP

Part 5: Music, Screen Boundaries, Backgrounds, Power-ups and More

Part 6: Virtually Lagless Actors

Disclaimer: Use comments to provide feedback and point out issues with the article (typo, wrong info, etc.). If you're seeking help for your game, please ask a question on the forums. Thanks!


Oh, your Stencyl version is old.
my Stencyl is 3.4 version. I can't do it!

Amir.H from Iran

0 5 years, 10 months ago
The "when this hears" is now Custom Event, Add Event>Advanced>Custom Event...
Also "tell this to [text]" is now "trigger event"

0 8 years, 1 month ago
I can't find "when this hears..." Help!
0 8 years, 10 months ago
Budy8760 Gaming
Hay Abigayl. When making my code I mesd up and now only 2 enumeas spown.
Can you help me with that?

1 9 years, 6 months ago
I'm using Stencyl 3. Is there an easy way to copy and paste code (or drag blocks) from one event to another event? I have to manually drag all the blocks one by one under custom event. Also I'm stuck on the trigger "tell this to 'text'" Stencyl 3 does not have this. Where can I find it?
-1 9 years, 6 months ago
I found out what to do but then when it says Add an Event -> Advanced -> Custom Event I did that but instead of it comming up with when this hears it comes up with when happens What do i do
1 10 years, 3 months ago
WOW i got confused on the part where u hold shift and move what do i move and where do i move it 2
1 10 years, 3 months ago
hey abigayl, could you do a tutorial on how to increase a score value (i already have the score render behavior
0 10 years, 4 months ago
when a test the game i have an error

[object AlchemyExit]
at Function/<anonymous>()
at Function/<anonymous>()
at Box2DAS.Dynamics::b2World/HandleSte p()[/home/stencyl/ ns/jobs/StencylWorks-Dist/workspace /plaf/flash/Box2DAS/Box2DAS/Dynamic s/]
at tchEventFunction()
at tchEvent()
at Box2DAS.Common::b2EventDispatcher/d ispatchEvent()[/home/stencyl/stency t/workspace/plaf/flash/Box2DAS/Box2 DAS/Common/]
at Box2DAS.Dynamics::b2World/Step()[/h ome/stencyl/ s/StencylWorks-Dist/workspace/plaf/ flash/Box2DAS/Box2DAS/Dynamics/b2Wo]
at stencyl.api.engine::GameState/inner Update()[/home/stencyl/ jenkins/jobs/StencylWorks-Dist/work space/plaf/flash/root/stencyl/api/e ngine/]
at stencyl.api.engine::GameState/postU pdate()[/home/stencyl/ enkins/jobs/StencylWorks-Dist/works pace/plaf/flash/root/stencyl/api/en gine/]
at stencyl.api.engine::GameState/updat e()[/home/stencyl/ ns/jobs/StencylWorks-Dist/workspace /plaf/flash/root/stencyl/api/engine /]
at org.flixel::FlxGame/update()[/home/ stencyl/ encylWorks-Dist/workspace/plaf/flas h/flixel/org/flixel/]

plese help

0 10 years, 7 months ago
FS Sage
Hi Abigayl!

I included the pause behavior and when I pause and resume the game I also want the same for spawning. I added "if <game is paused> \/ cancel" to "CreateEnemies" behavior just below "create [actor type] etc." and it stops the spawning as I press the button, but I have no clue how to redo it as I resume the game. Any tips?

PS:Your tutorials are really helpful :D

0 10 years, 11 months ago

Sign In to Comment