Introduction:
Your first behavior in Stencyl is probably in Design mode. As said in the product page ,https://stencyl.com Stencyl does not require code to make games. You do not need code to optimise your StencylWorks effectively either (see Actor Group).
To start, the first event needs to be created.
Basics
When Creating - when the actor is created or when the scene is entered
When Drawiing - updates every frame, use for huds and displays When Updating - updates every frame, use for other in game objects
Input
Keyboard - control to response. (see controls.). Our version of typing feature uses this method.
Any Key - press any keys to continue.
Mouse
Click - click anywhere, including outside the actor.
On Actor - usable for in game buttons.
on Region, - Stencyl-nator has not use this yet.
Actors
Advanced
Custom Event - public function without return and parameters.
Custom Block - public function in Design mode.
Global Custom Block - public static function in Design mode
Custom code - used for attributes that snippets cannot provide such as Int. as well as the custom variable types such as object data, drawing systems (See the link below)
Custom import - used to mport your custom class created in free form mode. such as drawing without sing G. Few examples of a custom codes can be found here https://stencyl-nator.blogspot.com/p/drawing-without-using-stencylgraphicsg.html
Usages
1. quick and easy design
Less prone to errors. - Easy to bypass nesting issues
2. preview code
Stencyl-nator uses preview code to create computational shortcuts for code mode. You may also need it as starting point to reverse-engineer stencyl codes.
Integration with code
The biggest advantage in design mode over code mode is the codes can be integrated into design mode. Snippets cannot be brought to code mode. See Flow > Advanced.
No comments:
Post a Comment