Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- function eventNewPlayer(n)
- system.bindMouse(n,true)
- end
- for n,i in pairs (tfm.get.room.playerList) do
- eventNewPlayer(n)
- end
- --]]
- system.bindMouse("Turkitutu",true)
- i=1
- x1=0
- y1=0
- function eventMouse(n,x,y)
- if i == 1 then
- i=2
- x1=x
- y1=y
- elseif i == 2 then
- w=x-x1
- y=y-y1
- wi=x-x1
- w=(w < 0 and math.abs(w) or w)
- xi=(wi < 0 and x1+(w/2)-w or x1+(w/2))
- tfm.exec.addPhysicObject(1,xi,y1,{type=1, height=10, width=w, angle=math.deg(math.tanh (math.tan(w/y))), friction=8, restitution=0, dynamic=false,foreground=true,color="0xE61414",miceCollision=true})
- i=1
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement