HatakeAzzi Posted August 1, 2009 Author Share Posted August 1, 2009 Well, this is my first tutorial here. I don't know if exist a tutorial about it. Anyway, go to **frmMirage** and make a **CheckBox**, set the name to chkRun.On modGameLogic, search by Sub CheckMovement() and find it:```If ShiftDown Then Player(MyIndex).Moving = MOVING_RUNNING Else Player(MyIndex).Moving = MOVING_WALKING End If```And replace to:```If ShiftDown Then Player(MyIndex).Moving = MOVING_RUNNING Else Player(MyIndex).Moving = MOVING_WALKING If frmMirage.chkRun.Value = Checked Then Player(MyIndex).Moving = MOVING_RUNNING Else Player(MyIndex).Moving = MOVING_WALKING End If End If```Finish. Anything, just ask to me :renzo:Credits: HatakeAzziExcuse me for my bad english :D Link to comment Share on other sites More sharing options...
Squiddle Posted August 2, 2009 Share Posted August 2, 2009 Thanks, I might use this. Also, this actually taught me how to use Checkboxes in my games. Strange :S. Anyways, nice add :D. Link to comment Share on other sites More sharing options...
HatakeAzzi Posted August 3, 2009 Author Share Posted August 3, 2009 Well, you can use commandbutton to do this too… Create a commandbutton and change your name to: cmdWalkRunNow, change the caption it to: Walking...In the event Click of button, put this:``` If cmdWalkRun.Caption = "Walking..." Then cmdWalkRun.Caption = "Running..." Call AddText("Now you're running! Click again to back the walk.", BrightBlue) ElseIf cmdWalkRun.Caption = "Running..." Then cmdWalkRun.Caption = "Walking..." Call AddText("Now you're walking! Click again to back the run.", BrightBlue) End If```In modGameLogic find Sub CheckMovement()… then find:``` If ShiftDown Then Player(MyIndex).Moving = MOVING_RUNNING Else Player(MyIndex).Moving = MOVING_WALKING End If```And change to:``` If frmMirage.cmdWalkRun.Caption = "Running..." Then Player(MyIndex).Moving = MOVING_RUNNING ElseIf frmMirage.cmdWalkRun.Caption = "Walking..." Then Player(MyIndex).Moving = MOVING_WALKING End If```I not tested this, but I think it will behave. Good Luck :) 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