C# Tutorial Create a side scrolling platform game in visual studio

In this tutorial we will show you how to create a simple yet efficient side scrolling game only using Visual Studio toolbox components using the c# programming language. We have create another c# platform game tutorial before where you played the game in a static level for this one, we thought we can do better by adding the side scrolling and platform elements together. The main objective of this game, you the player are in a level where there is a locked door, you need to collect the key from the other end of the level while collecting some of the coins and not dropping off the platforms. Once you collect the key you are able to open the door and complete the level. Premise is fairly simple and it’s a lot of fun to make, let get started.

note – games development is a lot about trial and error, don’t be afraid to of the errors or the game breaking, while doing this tutorial it seems a lot easier to follow through but if you want to add more functionalities to it, don’t be afraid to try it out, if the worse happens this tutorial is here to help other than that you can try to make anything you want.

Lesson Objectives

  1. Create a full side scrolling platform game in visual studio with c# programming language
  2. Use several picture boxes and control them using timers
  3. Use Loops to easily identify the platforms, coins, keys and doors
  4. Create gravity and jump force in visual studio
  5. Using Key down and Key up events to control the character
  6. Smoothly scrolling the background, items and platforms as the player moves between left or right

 

Download the side scrolling platform game images here

 

c-sharp-tutorial-create-a-side-scrolling-platform-game-in-visual-studio