Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Damage tutorial
#5
For your kill tile, make an editor, much like the warp or item tile. In this editor, have a scroll bar, scrlDamage, and use that scroll bar to set how much damage it does. Assign the amount of damage to the Tiles Data1.

Call SetPlayerHP(Index, GetPlayerHP(Index) - Map.Tile(getplayerx(index), getplayery(index)).data1)


Something like that will work. That's not exact code though

Also, you might want to go into sub that regenerates the players HP, and add a check so that their hp doesn't regenerate (or maybe even continues to go down) if they are standing on this tile
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)