Skip to Main Content
Stencyl Essentials
book

Stencyl Essentials

by Richard Sneyd
April 2015
Beginner to intermediate content levelBeginner to intermediate
206 pages
3h 46m
English
Packt Publishing
Content preview from Stencyl Essentials

Chapter 7. Complex Behaviors and Code

In this chapter, we'll build on the basic knowledge and competency that we acquired in Chapter 6, Writing Simple Behaviors with the Stencyl visual programming system. Going beyond the basic events and blocks, we'll learn how to:

  • Create custom blocks and events
  • Handle advanced conditional logic scenarios
  • Communicate between the scene and actor behaviors using a series of special-purpose blocks built into Stencyl's proprietary visual programming language

Adding player interaction

Before there can be any ostensible gameplay, we must accept and react to some form of player input. This gives the player some level of agency within the game. Let's learn how to do this now.

Initializing the variables

The very first thing ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Reinventing the Organization for GenAI and LLMs

Reinventing the Organization for GenAI and LLMs

Ethan Mollick
Native Mobile Development

Native Mobile Development

Shaun Lewis, Mike Dunn

Publisher Resources

ISBN: 9781784399450Purchase Link