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

112,339

Views

Beginner

Level

20

Comments

Pre-Shipped Behaviors

by captaincomic (Updated on 2016-05-03)


What are Pre-Shipped Behaviors?

Stencyl includes several dozen of the most common and useful behaviors. Why? Because it's no fun reinventing the wheel or foraging around on StencylForge when you could get the "real" thing out of the box.

To find them, just begin attaching a behavior to an Actor or Scene like you'd normally do.

Then, pick something from the FROM YOUR LIBRARY section.

What's currently available?

Disclaimer: Names may slightly differ in practice. Some behaviors may have shifted around over time.

Controls

  • 2/4/8 Way Motion
  • Asteroids Motion
  • Follow the Mouse
  • Face the Mouse
  • Simple Jump & Run Controller
  • Fire Weapon w/Bullet Limiter
  • Shoot Around the Block
  • Drag and Drop

Motion

  • Circular Motion
  • Wave Motion
  • Back and Forth
  • Wander
  • Bounce off Wall
  • Follow Target
  • Follow Path
  • Face Direction of Motion
  • Don't Exit Screen
  • Wrap Around Screen
  • Starting / Random Starting Velocity

GUI

  • Three State Button
  • Effect on Mouse Over
  • Die on Click

Utilities

  • Game Debugger
  • Draw Terrain
  • Video Player
  • Social Media Helper
  • Donate
  • Hide Mouse Cursor

Can I suggest some behaviors?

Sure! Create a topic in the issue tracker (as a suggestion) stating the behaviors you want Stencyl to have pre-installed.

Print Article Edit Article How to Edit an Article
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!

20 Comments

aditya chaudhary
how to make a behaviour for enemy to move it left to right and vice versa.the game is like mario

1 6 years, 9 months ago
AdamPlays82
I'm trying to make a chess-like game where the player has to tap to select a piece, and then if the player taps on a legal square, the piece will slide to that square, but I'm having trouble figuring out how to do this.

How do I make it so that only the selected piece will move to the desired square? And how do i set which squares are legal for each piece?

Thanks for helping!

0 7 years, 5 months ago
wbhyvong
Basically the curve, circle, line any
1 8 years, 3 weeks ago
wbhyvong
How to actor move forward along the path, help me, thanks a lot.
1 8 years, 3 weeks ago
jexadox
can i add behaviors and stuff to my library? how would i do that?

1 8 years, 1 month ago
Psygamns
It would be useful to have working with camera behaviour
0 8 years, 1 month ago
Crovaxus17
What about the Health Manager behavior? I have been using it for NPC/enemy health tracking in my game, but it is pretty buggy. For one thing the "Persistent Health" feature crashes my game whenever it is on, so I have had to work around that. I ask because it is not on the list above and I wonder if it is no longer supported?
1 8 years, 4 months ago
Jon
Nothing has been removed. If you are having trouble finding this, please make a post on the forums, and someone will help you out. Thanks!
1 9 years, 4 days ago
HAEMHuK
but its not true........ why you deleted all usefull "Pre-Shipped Behaviors" ??
1 9 years, 6 months ago
mlaurie08
Hey new to stencyl,
Can you use stencyl's pre made behaviors in a game that is intended on being published?

4 10 years, 8 months ago

Sign In to Comment