Working with collision groups

Behind the scenes, collision detection is quite a complex process, but Stencyl gives us great control over which collisions will be detected between different actors and tiles. This control is achieved by allowing us to place actors into groups, and then providing us with the ability to specify which groups will collide with each other.

For example, we may want our monkey actor to collide with enemy actors and also with the collectible fruit actors, but we might not want the enemy actors to collide with the fruit actors.

Let's have a look at how the collision groups are currently configured.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.59.187.201