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

[EO] Adding the Sprite Tile in the Map Editor


Fbu
 Share

Recommended Posts

 ```
        'Checks for sprite tile
        If .Type = TILE_TYPE_SPRITE Then
            amount = .Data1
  If CheckCash(index, 1, 200) = True Then 'x=itemnum of your cash y=amount you want sprites to cost
        Call TakeInvItem(index, 1, 100)  'x=itemnum of your cash y=amount you want sprites to cost
                  Call SetPlayerSprite(index, amount)
                  Call SendPlayerData(index)
            Moved = YES
    Else
      Call PlayerMsg(index, "Vous n'avez pas l'argent requis.", Yellow)
      Moved = NO
    End If

        End If
```
And how blocked the tuile if the player cannot buy the sprite? I tried that but he not working
Link to comment
Share on other sites

  • 5 months later...
  • 1 month later...
  • 3 months later...
Grate code now how can i make it to sprite chage automaticly on lvl 16 exeple like if player got lvl 16 sprite chage automaticly but on easy way to i dont need to do this 496 times ??
Function GetPlayerSprite(ByVal Index As Long) As Long
    ' If debug mode, handle error then exit out
    If Options.Debug = 1 Then On Error GoTo errorhandler

    If Index > MAX_PLAYERS Then Exit Function
Function GetPlayerSprite(ByVal Index As Long) As Long

    If Player(Index).Level > 16 Then
    If Player(Index).Sprite = 1 Then
        Player(Index).Sprite = 2
    End If
Else
End If
how to make like some button if sprite  1 got lvl 16 then sprite 1 chage sprite in 2 that somting??
Link to comment
Share on other sites

That's very cool,but an interesting idea/feature to that would be that when you walk trough that Tile again you change back to Normal  sprite.
Why ?
I just think of Swimming
Example :
Normal Sprite
![](http://s18.postimage.org/u8gkvb16d/water2.png)

and When you walk to that Tile in my case of what i'm thinking (water) you change to this:
Swimming Sprite
![](http://s13.postimage.org/7hdxs518j/water.png)
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...