44,699

Views

Beginner

Level

41

Comments

Abigayl's Interactive Tutorials (Part 3)

by Joe (Updated on 2012-07-21)


Tutorial 3 - Advanced Controls, Spawning

 

CHANGES TO CURRENT STENCYL VERSION:

  • 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!

41 Comments

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

Amir.H from Iran

0 2 years, 1 month ago
Zubara031
The "when this hears" is now Custom Event, Add Event>Advanced>Custom Event...
Also "tell this to [text]" is now "trigger event"

0 4 years, 3 months ago
gas33
I can't find "when this hears..." Help!
0 5 years, 3 weeks 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 5 years, 8 months ago
rocketree
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 5 years, 8 months ago
Goodbuddy
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 6 years, 5 months ago
Goodbuddy
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 6 years, 5 months ago
shadowspawnfoxxy
hey abigayl, could you do a tutorial on how to increase a score value (i already have the score render behavior
0 6 years, 6 months ago
kittyy12
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/stencyl.net/jenki ns/jobs/StencylWorks-Dist/workspace /plaf/flash/Box2DAS/Box2DAS/Dynamic s/b2World.as:185]
at flash.events::EventDispatcher/dispa tchEventFunction()
at flash.events::EventDispatcher/dispa tchEvent()
at Box2DAS.Common::b2EventDispatcher/d ispatchEvent()[/home/stencyl/stency l.net/jenkins/jobs/StencylWorks-Dis t/workspace/plaf/flash/Box2DAS/Box2 DAS/Common/b2EventDispatcher.as:27]
at Box2DAS.Dynamics::b2World/Step()[/h ome/stencyl/stencyl.net/jenkins/job s/StencylWorks-Dist/workspace/plaf/ flash/Box2DAS/Box2DAS/Dynamics/b2Wo rld.as:179]
at stencyl.api.engine::GameState/inner Update()[/home/stencyl/stencyl.net/ jenkins/jobs/StencylWorks-Dist/work space/plaf/flash/root/stencyl/api/e ngine/GameState.as:1730]
at stencyl.api.engine::GameState/postU pdate()[/home/stencyl/stencyl.net/j enkins/jobs/StencylWorks-Dist/works pace/plaf/flash/root/stencyl/api/en gine/GameState.as:1511]
at stencyl.api.engine::GameState/updat e()[/home/stencyl/stencyl.net/jenki ns/jobs/StencylWorks-Dist/workspace /plaf/flash/root/stencyl/api/engine /GameState.as:1493]
at org.flixel::FlxGame/update()[/home/ stencyl/stencyl.net/jenkins/jobs/St encylWorks-Dist/workspace/plaf/flas h/flixel/org/flixel/FlxGame.as:407]

plese help

0 6 years, 9 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 7 years, 1 month ago

Sign In to Comment