Games Programming with Visual Basic lesson 1 – Character Control

In this lesson you learn how to program your arrow keys to move a character up, down, left, right on the screen without pause. You will use if statements, boolean variables, event handlers, and the timer object to achieve this. If any of these concepts are new to you, you will have to watch the Visual Basic programming videos before moving onto games programming.

Sprites downloaded from:
http://www.lostgarden.com/2007/05/dancs-miraculously-flexible-game.html

Completed game can be downloaded here:
http://magicmonktutorials.com/itvideolist.php?key1=20

Comments

louesse canlas says:

how to get that form1_keyup ?

Weei Heng Chew says:

this game can create by visual studio 2008?

Randell Seth Reyes says:

hello sir.. im amazed with that game but when I code your codes,, the gem didnt come out when i ate the 1st gem.. and the bug didnt come out when i run the program .. can you help me sir? thank you

Edward Boguslavsky says:

The smooth movement is amazing! Thank you very much

Jay Pandya says:

i want to restrict that object movement within a panel boundary.How can we do that.?

louesse canlas says:

Boy is not a string ??

Paavan Gupta says:

Sir, I want to make a picture box jump and then come down.
What should I do.

Karvin Poon says:

Hello sir! This series of tutorials of yours help me a lot in my project. I would like to express my gratitude to you, so thank you sir! Anyway, what sort of algorithm did you use to create this game?

BaconNewdles says:

instead of boy.left = boy.left + 5, you could just simple do boy.left += 5. Similarly you can write -= 5 etc. Just is more efficient and easier in my opinion 🙂

Oghenekevwe Ghassan El-Amin says:

Is there A way to rotate the sprite to look at the mouse?

reedrichards82 says:

This movement isn’t practical for a game. Is there some way to create a custom speed? Something like in the original Zelda or Pokemon games?

 Write a comment

*

Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!