VB6 RPG Movement

Recommended Posts

What is the VB6 RPG movement code, Ive tried numourus of times but i jus can't find a way, no animations or anything, just the movement, thank you

Share on other sites
You'll have to give more details about what you're trying to achieve, because VB6 isn't a "game making" tool, so its not aware of what a RPG might be, even less of what "movement codes" might mean.

Eric

Share on other sites
I don't now how to make the charecter move, if i knew this, i could go from there, i need the arrow keys for movement, and it to move up down lrft right, i cant figure out movement, see, the key events are easy, i just but the whole script would help

Share on other sites
You are still giving us really little info. What type of rpg are you making? Tilebase? One using shapes or images? Well here is a simple thing if you are doing a tilebased

Private Type Player    int x as integer    int y as integerend typePrivate player as PlayerPrivate Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)    if KeyCode = vbkeyleft then       player.xpos = player.xpos - 1    else if ....End Sub

If you are using images do something like this.
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)    if KeyCode = vbkeyleft then       image1.left = image1.left - 1    else if ....End Sub

I hope that helps but you don't give us too much to work with.

Share on other sites
Sorry, I dont know what tile based or image is

Share on other sites
Then I suggest learning vb before you start making an rpg. Grab a book or find some tutorials. Just do a search for vb tutorials on google. Then once you learn about vb then start with something like pong and then move from there.
Cya

Share on other sites
Are you using DirectX, GDI, objects on the form?

You havn't given nearly enough information for us to help you. We need to know how you're drawing your game (or if it's text-based), and we need to know how you're storing the information for the character.

VB(6) Gaming Tutorials.

Create an account

Register a new account

• Partner Spotlight

• Forum Statistics

• Total Topics
627689
• Total Posts
2978659

• 18
• 14
• 12
• 10
• 12