This project has moved and is read-only. For the latest updates, please go here.

Contact with ground and "walls"?

Topics: Developer Forum
May 15, 2014 at 1:02 PM
Brand new FarSeer coder here. Pardon the newbie questions. The collision event handler cnvGame_Collision doesn't seem to get called when a sprite makes contact with the ground or walls. How can set that up? I want to play sound effect when that happens.

Also, is there an easy setting to create a "lid" on the game canvas so objects bounce off the "ceiling" instead of flying off into cyberspace?

Thank you tons for creating such a fun library to play with!
Jun 25, 2014 at 11:29 AM

you should share some code, we can't help you without.

For the "lid", if you are not using a camera in your game, simply set a body of your window's width at y = -10 for example.