Suppositoire Posted May 4, 2011 Author Share Posted May 4, 2011 Hello,1\. When I run it shall be possible that the sprite changes appearance? For example I have the sprite 1.bmp and when I run I take the sprite 2.bmp2\. Is it possible to run by pressing on a touch ("shift ")?:)) Link to comment Share on other sites More sharing options...
Grimnnak Posted May 4, 2011 Share Posted May 4, 2011 1\. Yes,Look around for a sprite changing code. 2\. Yes go to Constants in Your VB6 Project And find "' Speed moving vars" And change Walk speed. Link to comment Share on other sites More sharing options...
erkro1 Posted May 5, 2011 Share Posted May 5, 2011 Change on both client and server Public Const RUN_SPEED As Byte, when you make it like this Public Const RUN_SPEED As Byte = 8 then the player will run 2 times as fast as walking. ;) Link to comment Share on other sites More sharing options...
Suppositoire Posted May 5, 2011 Author Share Posted May 5, 2011 @Grimnnak:> 1\. Yes,Look around for a sprite changing code.Can you help me more ?@Grimnnak:> 2\. Yes go to Constants in Your VB6 Project And find "' Speed moving vars" And change Walk speed.I want run when I press a touch . And Thank Erkro & Grimnnak Link to comment Share on other sites More sharing options...
erkro1 Posted May 5, 2011 Share Posted May 5, 2011 @Suppositoire:> Can you help me more ?> > I want run when I press a touch . > > And Thank Erkro & Grimnnak1\. Look where the running is handled and add Call Setplayersprite(spriterunning) to it.spriterunning = the sprite you want to character to have when running.Then make a check that checks if Shiftdown is true, if false, change the player sprite back to his original state, if true, exit the sub.2\. shift is the default key for running, but you can easily change it by looking in the code. Link to comment Share on other sites More sharing options...
Suppositoire Posted May 5, 2011 Author Share Posted May 5, 2011 @Erkro1:> 2\. shift is the default key for running, but you can easily change it by looking in the code.It's OK .But@Erkro1:> 1\. Look where the running is handled and add Call Setplayersprite(spriterunning) to it.> spriterunning = the sprite you want to character to have when running.> > Then make a check that checks if Shiftdown is true, if false, change the player sprite back to his original state, if true, exit the sub.I not all understood and I am novice in VB6, could you make screenshot or explain in detail? please . Link to comment Share on other sites More sharing options...
erkro1 Posted May 5, 2011 Share Posted May 5, 2011 No, we're here to answer questions, not to do requests, I've alot other work to do so I can't help you. Link to comment Share on other sites More sharing options...
Suppositoire Posted May 6, 2011 Author Share Posted May 6, 2011 Anybody is not free to help me? Link to comment Share on other sites More sharing options...
damian666 Posted May 6, 2011 Share Posted May 6, 2011 no, because you wont learn it that way.they gave you pointers, put some work intoo it, its not that hard ya know…Damni Link to comment Share on other sites More sharing options...
Suppositoire Posted May 9, 2011 Author Share Posted May 9, 2011 [![](http://img585.imageshack.us/img585/5711/submove.png)](http://imageshack.us/photo/my-images/585/submove.png/)Is it the good sub?And I wants that if the player is of the class 1 (the sprite of the class 1 is the sprite 1) then when the player puts himself has to run he takes the sprite 2If the player is of the class 2 (sprite 3) then when he puts himself has to run he takes the sprite 4…I really need help please . Link to comment Share on other sites More sharing options...
Suppositoire Posted May 11, 2011 Author Share Posted May 11, 2011 :s ?? Link to comment Share on other sites More sharing options...
Ruins of Hell Posted May 11, 2011 Share Posted May 11, 2011 We've told you multiple times that we **do not give code**. That Sub is indeed where you should add it, except you would reverse the state of both of the variables (make false true and true false), so that hitting the shift key would run until retoggled. Link to comment Share on other sites More sharing options...
Suppositoire Posted May 12, 2011 Author Share Posted May 12, 2011 Ok can you delete the topic pls? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now