Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs

ct.js

Create cool 2D games with a free game editor! · By Cosmo Myzrail Gorynych

collision group

A topic by qwik06 created Apr 30, 2019 Views: 69 Replies: 1
Viewing posts 1 to 2

how does collision group feature work and how do implement the feature in code??

Developer

Collision group helps to filter copies while checking collisions. Almost every method in ct.place has an optional parameter for this group to exclude other copies — only these copies that have the same collision group like specified in a method call will match. See Platformer tutorial for examples.