How can I detect collisions between two images in c#?
Posted
by
Shane Callanan
on Stack Overflow
See other posts from Stack Overflow
or by Shane Callanan
Published on 2012-11-14T10:52:11Z
Indexed on
2012/11/14
10:59 UTC
Read the original article
Hit count: 245
hope you can help me out with this one. I'm new to c# so am very inexperienced. But basically I'm trying to make a game in which certain objects fall from the sky. Some objects like feathers take a while to drop, while metal balls will drop faster. You start off with a certain amount of cash and can buy weapons of your choice to place on the ground below. Now I've never done anything to do with collisions before, so simple answers will be of much help!
Here are some of the collisions that will be in the game: (Not sure if different types of collisions are coded differently)
-Collision between bullets and falling objects -Collision between falling objects and the ground (which is inanimate) -Collisions between falling objects and a certain radius around another object (for example, if a weapon gives off a radiation beam starting from its centre) -Collisions between rotating objects (rotating blade) and falling objects
If someone could help me with this, it would be much appreciated!
© Stack Overflow or respective owner