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

True 3-Frame Movement


Electrokinesis
 Share

Recommended Posts

Glad you like my code.

Here's how to add a different attack frame:

```
' Check for animation
    Anim = 1
  If Player(Index).Attacking = 0 Then
    Select Case GetPlayerDir(Index)
      Case DIR_UP
        If (Player(Index).yOffset > 8) Then Anim = Player(Index).Step
      Case DIR_DOWN
        If (Player(Index).yOffset < -8) Then Anim = Player(Index).Step
      Case DIR_LEFT
        If (Player(Index).xOffset > 8) Then Anim = Player(Index).Step
      Case DIR_RIGHT
        If (Player(Index).xOffset < -8) Then Anim = Player(Index).Step
    End Select
  Else
    If Player(Index).AttackTimer + 1000 > GetTickCount Then
      Anim = 4
    End If
  End If
```
Then find:

```
rec.Left = (GetPlayerDir(Index) * 3 + Anim) * 32
```
and replace with:

```
rec.Left = (GetPlayerDir(Index) * 4 + Anim) * 32
```
Enjoy.
Link to comment
Share on other sites

  • Replies 93
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 weeks later...
Well, you could make it so it opens 32 spaces.
Also, then what I ment isn't in RMXP style, although, you could simply make this line:
1,2,3,2,1,2,3,2,1,2,3,…
I think it'll work, since the 4th tile of RMXP is the same one as the 2nd one :P
Link to comment
Share on other sites

  • 3 weeks later...
  • 2 months later...
@Sean:

> [Nanoware] link=topic=30628.msg313647#msg313647 date=1227180371]
> Can you edit it for npc's too please?

yes please. I want it to work with my npcs.. cuz they look how they originally looked before i put the code in =P
Edit: oops! necro post. Sorry =S
Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...
  • 3 weeks later...
I know this is a few days late but im stupid with VB, and still tryin to learn it.

I did the first 1 and it works and all but I cant get robins extra attack frame to work right, when i use it, it plays the attack animation for the up movement as the stance for the facing down and the walk left animations for the walk down and the attack down for the attack left , etc. its all messed up and idk y , and ive replaced the sprites positions but more than 1 direction/attack uses one frame so cant fix that with moving the sprites around, sorry for the big confusing explaination.

Thank You for any help.
Link to comment
Share on other sites

Huh, when i play from vb6 it has an error and it tells me to look in frm mirage for the error.
Line 2407: Cannot load control Socket; license not found.
that's the error. Any help?

edit: when i try to compile it also has an error. But this time it opens a form up and shows this line with the red stuff highlighted.
frmMirage.txtChat.SelStart = Len(frmMirage.txtChat.Text)
Link to comment
Share on other sites

  • 3 weeks 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...