Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mouse = "Tectoon" -- Aqui o seu apelido
- platformX = tfm.get.room.playerList[mouse].x
- platformY = tfm.get.room.playerList[mouse].y
- local platformId = 1
- tfm.exec.addPhysicObject(platformId, platformX, platformY, {type=13,width=10,height=10,color=nil,miceCollision=false,groundCollision=false,dynamic=true,mass=1})
- tfm.exec.addPhysicObject(2, platformX, platformY - 20, {type=12,width=30,height=10,color=nil,miceCollision=true,groundCollision=false,dynamic=true,fixedRotation=true,mass=1})
- tfm.exec.addPhysicObject(3, platformX, platformY + 20, {type=12,width=30,height=10,color=nil,miceCollision=true,groundCollision=false,dynamic=true,fixedRotation=true,mass=1})
- tfm.exec.addPhysicObject(4, platformX - 20, platformY, {type=12,width=10,height=30,color=nil,miceCollision=true,groundCollision=false,dynamic=true,fixedRotation=true,mass=1})
- tfm.exec.addPhysicObject(5, platformX + 20, platformY, {type=12,width=10,height=30,color=nil,miceCollision=true,groundCollision=false,dynamic=true,fixedRotation=true,mass=1})
- t = {
- {0,20,25,-3,0,15,1},
- {0,20,-24,-2,0,15,1},
- {-15,-10,-15,-9,0,39,1},
- {15,-10,15,-9,0,39,1},
- {15,-10,15,-9,0x6e0b0b,35,1},
- {-15,-10,-15,-9,0x6e0b0b,35,1},
- {-20,2,0,20,0x6e0b0b,10,1},
- {0,20,25,-2,0x6e0b0b,10,1},
- {0,5,0,6,0x6e0b0b,20,1},
- {13,-12,1,4,0x802424,30,1},
- {0,5,-17,-10,0x802424,30,1},
- {0,17,-18,-2,0x802424,15,1},
- {-22,-17,-17,-18,0xa33f3f,10,1},
- {-27,-8,-27,-7,0xa33f3f,8,1},
- {-12,5,-13,-6,0,4,1},
- {-18,-6,-9,-7,0,4,1},
- {-2,4,-3,-8,0,4,1},
- {-3,-8,2,-9,0,4,1},
- {-1,-2,3,-4,0,4,1},
- {8,1,10,-13,0,4,1},
- {12,-13,14,-8,0,4,1},
- {14,-8,19,-14,0,4,1},
- {19,-14,20,-3,0,4,1}
- }
- for k,v in pairs(t) do
- tfm.exec.addJoint(k, platformId, platformId, {type=0,point1=(platformX+v[1])..","..(platformY+v[2]),point2=(platformX+v[3])..","..(platformY+v[4]), color=v[5],line=v[6],alpha=v[7],foreground=true})
- end
- tfm.exec.addJoint(101, platformId, 2, {type=0, color=0, line=0,alpha=0,foreground=true})
- tfm.exec.addJoint(102, platformId, 3, {type=0, color=0, line=0,alpha=0,foreground=true})
- tfm.exec.addJoint(103, platformId, 4, {type=0, color=0, line=0,alpha=0,foreground=true})
- tfm.exec.addJoint(104, platformId, 5, {type=0, color=0, line=0,alpha=0,foreground=true})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement