Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- players={}
- i=0
- mouseLeft=[[
- <ROSE><'J___)---
- ]]
- mouseRight=[[
- <ROSE>---(___C'>
- ]]
- function eventNewGame()
- tfm.exec.setUIShamanName("<CH>Script By: <BV>Issey")
- tfm.exec.setUIMapName("<VP>Pet Mouse")
- end
- function eventNewPlayer(name)
- players[name]={
- x=tfm.get.room.playerList[name].x,
- y=tfm.get.room.playerList[name].y,
- id=i
- }
- print(players[name].x)
- if(tfm.get.room.playerList[name].isFacingRight) then
- mouse=mouseRight
- else
- mouse=mouseLeft
- end
- ui.addTextArea(players[name].id,mouse,nil,players[name].x,players[name].y,0,0,0xffffff,0xffffff,0.0)
- i=i+1
- end
- for name,player in pairs(tfm.get.room.playerList) do
- eventNewPlayer(name)
- end
- function eventLoop(tc,tr)
- for name,player in pairs(tfm.get.room.playerList) do
- if not tfm.get.room.playerList[name].isDead then
- local x= tfm.get.room.playerList[name].x
- local y= tfm.get.room.playerList[name].y
- if(tfm.get.room.playerList[name].isFacingRight) then
- mouse=mouseRight
- x=x+20
- else
- mouse=mouseLeft
- x=x-20
- end
- y=y-10
- if(x~=players[name].x) or (y~=players[name].y) then
- ui.addTextArea(players[name].id,mouse,nil,x,y,0,0,0xffffff,0xffffff,0.0)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment