C# Tutorial – Hit Test or collision detection with multiple objects in windows form



C# Tutorial – Hit Test or collision detection with multiple objects in windows form

C# Tutorial - Hit Test or collision detection with multiple objects in windows form

In games you have to bump into other things right, it can be a coin, platform, door, key or enemy. In this tutorial we will show you how to identify different game objects using a for each loop, move the player around the screen and how to do collision detection or hit testing using the picture box bounds property. We are only using Visual Studio to do this tutorial, we are not going use Unity or other games engine to achieve this result. Its very simple to do, just follow along.

We will go through the basics of movements, key down, up, timer and collision detection inside of windows form app only using visual studio C#. This tutorial can help you gain better understanding how to make a character move around, identify which component it hit or collided with and what to do with that component when the collision has been detected in the game. We use similar methods on many of the games in Moo ICT. if you want to further your understanding then follow along some written tutorials from https://www.mooict.com/

Comments are closed.