Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

EO (1.3) Mouse Movement Tutorial


Rob Janes
 Share

Recommended Posts

would this work in eo v2??? if not is there a way to edit it to work?

@Yoran:

> I can't seem to get the mapeditor to work in EO. I made myself admin and pressed F1 an typed in /mapeditor but nothing happend…
>
> Does anyone know whats wrong?
>
> - sorry,  I found it in FAQ :P just have to press insert -

you need to press insert
Link to comment
Share on other sites

  • Replies 66
  • Created
  • Last Reply

Top Posters In This Topic

@Darth:

> yeah, Axis, it works in EO 2, although since I haven't implemented it on a v1.3 game, I'm not sure if it works exactly the same.

i don't think it does because i won't stop once i release the mouse.
Link to comment
Share on other sites

  • 1 month later...
When i compile the game it shows error - Method or data member not found .

frmMain.txtChat.SelStart = Len(frmMain.txtChat.text)  <–-

Where is my bad can someone help me i can't make WASD Movement too !  :sad:
Link to comment
Share on other sites

@UzGo:

> When i compile the game it shows error - Method or data member not found .
>
> frmMain.txtChat.SelStart = Len(frmMain.txtChat.text)  <–-
>
> Where is my bad can someone help me i can't make WASD Movement too !  :sad:

You didn't install Service Pack 6 when you installed Visual Basic 6\. Go read the guide.
Link to comment
Share on other sites

  • 6 months later...
Help PLZ

i got this working

But i REALLY REALLY need/want the auto direction change mentioned

but i cant find the mouse mouse SUB

i presume this is renamed in EO 2.0.0 like im using

could someone plz tell me what this is renamed to or tell me some steps to implement this auto direction change on EO2.0.0

Grate Many Thanks In Advance
Link to comment
Share on other sites

there is a mistake in the tut. its mousemove not mousemouse =p
here ya go:
```
Private Sub picScreen_MouseMove(Button As Integer, Shift As Integer, x As Single, Y As Single)
    ' If debug mode, handle error then exit out
    If Options.Debug = 1 Then On Error GoTo errorhandler

    CurX = TileView.Left + ((x + Camera.Left) \ PIC_X)
    CurY = TileView.top + ((Y + Camera.top) \ PIC_Y)

    If InMapEditor Then
        frmEditor_Map.shpLoc.visible = False

        If Button = vbLeftButton Or Button = vbRightButton Then
            Call MapEditorMouseDown(Button, x, Y)
        End If

    Else
    If Button = vbRightButton Then
        MouseMove = True

            'Right Click Mouse Movement Here, Give MyX and MyY values for current Pos then compare

            MyX = GetPlayerX(MyIndex)
            MyY = GetPlayerY(MyIndex)

            'Move Right
            If CurX > MyX Then
                DirUp = False
                DirDown = False
                DirLeft = False
                DirRight = True
          End If

            'Move Left
            If CurX < MyX Then
                DirUp = False
                DirDown = False
                DirLeft = True
                DirRight = False
            End If

            'Move Down
            If CurY > MyY Then
                DirUp = False
                DirDown = True
                DirLeft = False
                DirRight = False
            End If
            'Move Up
            If CurY < MyY Then
                DirUp = True
                DirDown = False
                DirLeft = False
                DirRight = False
            End If
    End If
    End If
    ' hide the descriptions
    picItemDesc.visible = False
    picSpellDesc.visible = False

    ' reset all buttons
    resetButtons_Main

    ' Error handler
    Exit Sub
errorhandler:
    HandleError "picScreen_MouseMove", "frmMain", Err.Number, Err.Description, Err.Source, Err.HelpContext
    Err.Clear
    Exit Sub
End Sub
```
Link to comment
Share on other sites

  • 10 months later...

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
 Share


×
×
  • Create New...