23,946

Views

Beginner

Level

6

Comments

Attribute Types

by Joe (Updated on 2013-02-17)


Earlier in this chapter, you learned about Attributes, which are changeable and configurable properties of Behaviors. What kinds of Attributes are at your disposal?
 

The 16 Types

Stencyl includes 16 different Attribute Types, corresponding to most of the resource types within Stencyl.
 

stencyl-design-mode-attribute-types

 

Guide

Here are some examples of common Attribute types and how they might appear on an Actor Type’s Behaviors page.

Attribute Type

Appearance in Actor Type Editor > Behaviors

Actor Group

stencyl-design-mode-actor-group-attribute

Actor Type

stencyl-design-mode-actor-type-attribute

Animation

stencyl-design-mode-animation-type-attribute

Boolean

stencyl-design-mode-boolean-type-attribute

Color

stencyl-design-mode-color-type-attribute

Control

stencyl-design-mode-control-type-attribute

Font

stencyl-design-mode-font-type-attribute

Game Attribute

stencyl-design-mode-game-attribute-type-attribute

Number

stencyl-design-mode-number-type-attribute

Scene

stencyl-design-mode-scene-type-attribute

Sound

stencyl-design-mode-sound-type-attribute

Text

stencyl-design-mode-text-type-attribute

 

Gotchas

Something you might bump into fairly early on is this.

Why are some Attributes unconfigurable? They fall into two categories.

  • There's nothing to configure. (Effects)
  • It's an Actor behavior, so until the actor's actually inside a scene, there's no context for being able to pick out a specific (Actor or Region)

For the latter case, this can be addressed by customizing the Actor once it's inside a scene. We've got an entire article devoted to customizing actors.

 

Game Attribute Attribute - What's that about?

The Game Attribute Attribute is a tongue and mind twister. It was originally intended to help behavior authors create behaviors that would be used across-games by letting the game specify which of its game attributes to use within a behavior.

This practice has since been superceded by a lesser known fact - you can create and use Game Attributes on the fly while the game is running, thereby making this use case obsolete. We'll be removing the Game Attribute Attribute type in the future in order to make room for more useful types.

Disclaimer: All articles are geared towards Stencyl 3.0 and above. 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!

6 Comments

Jon
The other 4 are unconfigurable attributes that won't show up when configuring a behavior.
0 7 months, 3 weeks ago
trwilson3
This guide only lists 12, where are the answers for the other four attributes?
Also seems like we need two more for messaging, and gravity.

Ted

0 11 months, 2 weeks ago
toscano
When you say that these guides don't really help ..., I could say that game programming is not for you.
don't give up, do it for fun like me at least.
Thank you everybody.

1 1 year, 7 months ago
coolernow123
Game Attribute Attribute really confused me, lol
0 1 year, 8 months ago
andyclark
The Guides are PRICELESS and I find them very helpful. Game making is VERY complex yet some people expect it to be easy. I downloaded Stencyl for free, I made some free games to amuse myself. I have not yet paid my $199 but I will in a couple days when i got the money. Anyone who complains about anything they get for free (like poster below) is not thinking straight IMO. Thank you, Stencyl.
1 1 year, 10 months ago
emerarudosempai
First comment huh? Just saying but... These guides don't really help... Me at least... AT ALL.
-4 1 year, 11 months ago

Sign In to Comment