Collision (bump and eat) - Lakelands Computing

Title
Go to content
Object Collisions (bump and eat)
Managing how objects collide is one of the most important part of any game. It sets out what happens to a football when a player kicks it, or a car when it crashes into a wall, or a bullet when it is fired and hits something, or simply when two people run into each other.

It also controls what happens when you bump into an object - do you push it out the way? pick it up? does it get removed from the game?

In Kodu collisions are handled by when bump do....

Eat is used to remove objects from a game.

This video shows you how to use these - it starts with a world with kodu in and programmed to move and shows you how to add apples then bump into them and eat them.
All Text copyright Lakelands Academy & Mr T Purslow 2020.
All images copyright free / creative commons unless otherwise stated.
You are welcome to use under a Creative Commons Attribution-nonCommercial-ShareAlike License.
All Text copyright Lakelands Academy & Mr T Purslow 2020.  All images copyright free / creative commons unless otherwise stated. You are welcome to use under a Creative Commons Attribution-nonCommercial-ShareAlike License.
All Text copyright Lakelands Academy & Mr T Purslow 2020.  All images copyright free / creative commons unless otherwise stated. You are welcome to use under a Creative Commons Attribution-nonCommercial-ShareAlike License.
Back to content