Working with collision detection in Stencyl
If our monkey has to collect items and avoid enemies, we will need to detect collisions between the monkey and the various actors that will represent the enemies and collectible items. In other words, our game needs to know when these objects have bumped into each other!
Stencyl, as we may now expect, makes the job of working with collisions much easier than it would be if we had to hand code our game using a traditional programming language. We can easily specify which parts of our tiles and actors will cause a collision event, and we can also easily configure behaviors to carry out certain actions for us when collision events occur.
In fact Stencyl is already automatically managing collisions within our game! Let's have a look behind the scenes, using a very useful feature that has been built into Stencyl to help us manage the collision detection: