How can I detect collisions between two images in c#?
- by Shane Callanan
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!