I have students creating games using the game lab after going through the CS Discoveries Game Design unit. One of my students was asking about creating custom collider shapes. Aside from merging the pre-existing shapes in a function and running that as a new collider, I haven’t been able to find a way to create custom irregular collider shapes. Any suggestions??
Welcome to the forum! I believe the only options for collider shapes in Game Lab are circles and rectangles, per the documentation for sprite.setCollider(). As you alluded to, you probably could set the collider to a small circle, and then create a series of rectangles and circles to approximate the desired shape, but I don’t know how feasible that is.
I’d encourage you to submit a feature request at https://support.code.org so the engineers can put this on their radar, if it isn’t already.
If anyone else has any workarounds, I’d invite you to please share those here.