Sunday, 30 March 2014

Stencyl Collisions skill development.

Next technical skill to develop is collisions. I had problems with this last year and found my character sprites would glitch when colliding with each other.

This is another tutorial made by the same one who did the tile sets:

 https://www.youtube.com/watch?v=WkywrBBDPn8

Technically you use your tile sets and adjust the collision lines around the edge of for example a barrel. The points you move around is similar to masking with the pen tool in After Effects which has moveable points around. It's also like the Pen tool in Photoshop and even Illustrator has this feature too.
The actor or player character will then collide with the scene object, but they can move through them if it's a non collision tile. Putting these objects on another layer and moving it above the existing layer allows the character to move behind the object. This can be very useful for having a hidden path or treasure behind an object, then allow the player to get behind it too without collisions.
I will be using this skill for my own games, as it's good for level design and gives the players more incentive to look in every possible places for hidden goodies.

No comments:

Post a Comment