Sign in to follow this  

VB6 RPG Movement

This topic is 4519 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Tell us more about your problem :)

Eric

Share this post


Link to post
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 this post


Link to post
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 integer
end type

Private player as Player
Private 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 this post


Link to post
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 this post


Link to post
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.

Share this post


Link to post
Share on other sites

This topic is 4519 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this