Time for action – creating a collision group for enemy actors
The game file to import and load for this session is 5961_03_07.stencyl
.
We're now going to configure the collision detection, so that the monkey will collide with the enemy Croc.
Display the Stencyl Book Croc actor in the Animation Editor (click on the Dashboard tab, then Actor Types and double-click on the Stencyl Book Croc thumbnail).
Click on the Properties button in the row of buttons at the upper-center of the screen.
Click the Edit Groups button in the Choose Group section to display the Collisions Groups window in the Game Settings dialog box.
Click on the Create New button at the top of the dialog box.
In the Create a New Group… dialog box that appears, type
Enemies
into the Name textbox and click on the Create button.Look at the bottom of the list in the right panel, and we can now see that the new group has been added to the list.
In the main panel, click on the Players button and the Tiles button.
Click on OK to return to...