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

[EO 2.0] Map Animations


Broojo02
 Share

Recommended Posts

@Broojo:

> WARNING: This tutorial is highly inefficient at the moment, I will work on making a tutorial that only sends the pure minimum number of packets needed.

So, why are you doing this server-side mostly? Can't this be done completely client-side, or am I missing something?
Link to comment
Share on other sites

  • Replies 54
  • Created
  • Last Reply

Top Posters In This Topic

If you want the animations to play less often than 1 second then change this value in the tutorial:
Anim = GetTickCount + 1000

From 1000 (1000 milliseconds which is 1 second) to a higher value, this will apply to all your animations though.
Link to comment
Share on other sites

  • 3 weeks later...
Updated, okay the animations are still sent from the serverloop function BUT they now only send if there is at least 1 player on that map.

This should optimise the server for games with relatively few players and animations.
Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...
hey.i need some help here.when i was trying to compile client it said 'variable not defined on lblanimation'.and when i ran the client on vb6 to test it…the animation frame (fraanimation)shows up on top of every single attribute frame instead of showing up on its own frame.can somebody plz help?thank you in advance.
Link to comment
Share on other sites

  • 3 weeks later...
Double post, sorry.

I followed the instructions again, but now when I select anim from the map editor the map editor goes blank. When I put anim tiles down they don't seem to do anything…

Does anyone know what the issue is?
Link to comment
Share on other sites

  • 1 month later...
If you guys are looking for a simpler way of map animations, why don't you just make the "tile" an item. For example, If you wanted to make water, you could just do the two animations and make it an item. Then, place the item attribute wherever you want water to go. Just put a block around the border of the land so the people can't walk on the water. That should work.
Link to comment
Share on other sites

  • 2 months later...
This tutorial worked great for me.  I put this into Eclipse Starlight.  The only problems I had were I forgot to enable the button, so it was dead when I went into map editor, and then when I did enable it, I saw I had to make the button and it's form a bit bigger to see the names of the animations.  But that was it.  I have it working now.
Link to comment
Share on other sites

  • 4 weeks later...
While adding

> ' Anim every 1 sec
>           If Tick > Anim Then
>             Anim = GetTickCount + 1000
>             For mapNum = 1 To MAX_MAPS
>                 For x1 = 0 To Map(mapNum).MaxX
>                     For y1 = 0 To Map(mapNum).MaxY
>                         If Map(mapNum).Tile(x1, y1).Type = TILE_TYPE_ANIMATION Then
>                             For playerNumber = 1 To Player_HighIndex
>                                 If IsPlaying(playerNumber) Then
>                                     If GetPlayerMap(playerNumber) = mapNum Then
>                                         SendAnimation mapNum, Map(mapNum).Tile(x1, y1).Data1, x1, y1
>                                     End If
>                                 End If
>                             Next
>                         End If
>                     Next

under

> ' Checks to update player vitals every 5 seconds - Can be tweaked
>         If Tick > LastUpdatePlayerVitals Then
>             UpdatePlayerVitals
>             LastUpdatePlayerVitals = GetTickCount + 5000
>         End If

I get this:
![](http://i.imgur.com/l9EtK.png)
Could anybody help me? :)

**EDIT**: Nevermind, I was silly enough to not copy all of the code.
Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
  • 4 weeks later...
  • 2 weeks later...
Works like a charm :D
But its bad that the Frame is missing…
Does anyone know an Fix

Edit...
I GOT IT :D
I dont know its the best way?... but it works...

===Server Side===
Search
```
      ' Anim every 1 sec
          If Tick > Anim Then
            Anim = GetTickCount + 1000
            For mapNum = 1 To MAX_MAPS
                For x1 = 0 To Map(mapNum).MaxX
                    For y1 = 0 To Map(mapNum).MaxY
                        If Map(mapNum).Tile(x1, y1).Type = TILE_TYPE_ANIMATION Then
                            For playerNumber = 1 To Player_HighIndex
                                If IsPlaying(playerNumber) Then
                                    If GetPlayerMap(playerNumber) = mapNum Then
                                        SendAnimation mapNum, Map(mapNum).Tile(x1, y1).Data1, x1, y1
                                    End If
                                End If
                            Next
                        End If
                    Next
                Next
            Next
        End If
```And change to
```
      ' Anim every 1/2 sec
          If Tick > Anim Then
            Anim = GetTickCount + 500
            For mapNum = 1 To MAX_MAPS
                For x1 = 0 To Map(mapNum).MaxX
                    For y1 = 0 To Map(mapNum).MaxY
                        If Map(mapNum).Tile(x1, y1).Type = TILE_TYPE_ANIMATION Then
                            For playerNumber = 1 To Player_HighIndex
                                If IsPlaying(playerNumber) Then
                                    If GetPlayerMap(playerNumber) = mapNum Then
                                        SendAnimation mapNum, Map(mapNum).Tile(x1, y1).Data1, x1, y1
                                    End If
                                End If
                            Next
                        End If
                    Next
                Next
            Next
        End If
```
And now no frame is missing and no stop is in the animation :D
Link to comment
Share on other sites

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...