Custom setCollider?


#1

When students use the setCollider block, they have options of a rectangle or circle. What if their sprite is flat on bottom like a rectangle and has a curvy surface at the top? Is there a way to have a custom shape so it is more realistic when they collide?


#2

The only options for setCollider is a rectangle or circle. I found this suggestion in the Game Lab Documentation for setCollider: “Often the image default rectangle collider is not appropriate for collision detection so you can set a smaller circular or rectangular collider and offset from the sprite’s center.” Hopefully messing around with the size and sprite center will help for creating more realistic collisions with different shaped sprites.


#3

Is there a way to change the size of the Collider without changing the sprite?