Tag Archives: behaviors

Behaviors

Now we will talk about object behaviors. With this properties an object could perform some action such a real stuff. Get on this properties by selecting the object, and then click on “Behaviors” which color is blue and have an underline on it. Same window appearance with Instance Variable will pop up.
SS019

I have a plane here, and now I will give it an “ability” to move by 8 direction. A real aircraft must be a solid stuff, right? So, I will also give it a “solid” stance. In other words, this properties will make your object as real as it is.SS020

Add new behaviors by clicking on (+) button. Usage of Behaviors window is the same with Instance Variable window (click link to go back and see details).

When you click on add button, there are a lot of behaviors type will appear. I will tell you some type of behavior which very common used in a game application.
SS021
*See picture above

1. Solid
This type of behavior will give it an ability to become a solid things, which stand on solid platforms, slide on tilted platforms, affect with collisions, and gravity, etc.

2. Bound to layout
In some game application, creator has restrict players to move outside layout. Use this to limit player movement, so it will still remain inside.

3. Fade and Flash
A simple fade out and fade in animation. For flash type behavior, it will be a bit different. Flash behavior usually used to make collision effect or restart effect of an object. I.e, when a player dies and re-spawn, it will flashing to avoid sudden attack. Use flash behavior to make this kind of effect.

4. 8 Direction
It is a basic movement control for player to control object. Can be change to just 4 Direction setting further. Configuration for this behavior and some of other behavior will appears in “Object Type Properties” > “Behaviors” > “(behavior type)” as additional properties, so it will be more complex and longer after you input some behavior.
SS022

5. Bullet
As its name, bullet. This behavior have additional properties / configuration to make an object move like a bullet. Needed for shooter game like what I have made recently “Aircraft Takedown“.

6. Platform
Like “Mario Bros”, he walks on land that we called here as platform. In this type, you will make an object as a walking side

If you have all of your object ready with their variables and behaviors. Follow this LINK to go to advance setting of your application, algorithm.