As of late 2021, we are in the process of updating Stencylpedia and fixing up outdated & broken content. Thanks for your patience!







Crash Course 2: Invaders - Part 3

by Hectate (Updated on 2015-01-31)

Part 3: Actor Collisions

Step 15: We’ve got one Actor Type so far, but before we can go further, we need to organize our Actor Types into what are called Collision Groups. The Collision Group an Actor belongs to determines what other Actors it can (and can’t) collide with. To start, we click the Settings button at the top of Stencyl's interface, in the upper left.

Settings button

Step 16: A new dialog will pop up that shows the settings in our game. Different options are down the left side, we want to go to the car icon with the label Groups. The center area of the Game Settings dialog will change to show us our Collision Group settings for this game.

Collision groups settings.

(Note in the screenshot we already created Enemies and Bullets as Groups - we'll show you how to create a Group in the following steps).

Step 17: Click the green Create New button along the top of the window to create a new Collision Group.

Step 18: When the dialog box pops up, name it "Enemies", as shown, and hit the Create button. We can leave the Description field blank.

Step 19: Next, let's click the green Create New button again and create another group. This time let's call it "Bullets".

Step 20: By default, our new groups are not set to collide with anything else. Let's change their settings so they do.

We should have the Bullets group selected in the list to the right (if not, click on it). In the central settings area, we can see the "Bullets" name, the description, and a "Collides With" grid of buttons - one for every other group that we have in our game.

Within the "Bullets" group's settings, click the Enemies button once so it turns green, as shown below. Leave all the other buttons grey. This means any Actor Types that belong to the Bullets Group will only be able to collide with Actor Types in the Enemies Group.

Click the OK button in the bottom-right corner of the Game Settings dialog box to close the window.

Now that we have our Collision Groups set so our Bullets will collide with any Actors that belong to the Enemies Group, it's time to create two new Actor Types, our "Bullets" Actor Type and our "Enemy Ship" Actor Type.

Click here to go to Part 4.

Disclaimer: Use comments to provide feedback and point out issues with the article (typo, wrong info, etc.). If you're seeking help for your game, please ask a question on the forums. Thanks!


Damn, it was not easy to find... thanks!

0 9 years, 5 months ago
Thanks. I had trouble finding it too.
0 9 years, 5 months ago
You can also get there by clicking the Settings button (it has a picture of a light switch) in the gray area at the top of your Stencyl window, then picking the Groups tab.
4 9 years, 5 months ago
I got to Collision Groups by going to Dashboard and selecting View > Game Settings from the top bar (mac). On the window that pops up, click the "Groups" tab on the bottom left.
3 9 years, 5 months ago
Hi guys. I can't access the 'collision groups' button, as I have no 'Game' drop down menu? I only have 'Resources' and Logic'. Can anyone help?
2 9 years, 5 months ago
Wow! colliding groups!
0 9 years, 5 months ago

Sign In to Comment