Game Development Reference
In-Depth Information
Giving a sprite 8Direction movement
Making a moving sprite is important for most games. Construct 2 has a fantastic behavior
that easily adds the moving game mechanics to your sprite/player.
Go ahead and scroll the behaviors list, you should reach the 8Direction behavior. Select
that and you should see it appear in your sprite's Behaviors window.
Editing the properties of a behavior
Some of the behaviors have properties, and some do not. Behavior properties exist to make
changes to the behavior if necessary. For example, if you want your player to move faster,
you can go edit the Behaviors property. When you give an object a behavior, you have ad-
ded extra functionality to that object and can now edit more properties in the event list as a
result. In the following screenshot, you can see some of the properties that you can edit in
the layout editor:
Search WWH ::




Custom Search