Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Coloca el nombre de tu víctima (persona que será manipulada) sin borrar los "asteriscos".
- doll = "Víctima"
- -- Escribe tu nombre SIN BORRAR los "asteriscos".
- god = "Tunombre"
- -- LISTO! Ahora puedes manipilar!
- -- Controla a tu víctima usando los comandos:
- -- U - Arriba
- -- J - Abajo
- -- H - Izquierda
- -- K - Derecha
- for name in pairs(tfm.get.room.playerList) do
- -- Instead of binding each key seperately, we put them all in a group.
- for keys, k in pairs({85, 74, 72, 75}) do
- --And now the keys are binded!
- tfm.exec.bindKeyboard(god, k, true, true)
- end
- end
- -- Listening for keyboard events.
- -- You'll notice that move values are different because it makes the doll easier to control.
- function eventKeyboard(god, key, down, x, y)
- if key == 85 then
- --Moves the player Up by 50 pixels
- tfm.exec.movePlayer(doll, 0, 0, true, 0, -50, false)
- elseif key == 74 then
- -- Moves the player Down by 40 pixels
- tfm.exec.movePlayer(doll, 0, 0, true, 0, 40, false)
- elseif key == 72 then
- -- Moves the player Left by 40 pixels
- tfm.exec.movePlayer(doll, 0, 0, true, -40, 0, false)
- elseif key == 75 then
- -- Moves the player Right by 40 pixels
- tfm.exec.movePlayer(doll, 0, 0, true, 40, 0, false)
- end
- end
- -- El nombre de la víctima aparece solo para ti:
- print("<font color='#FF0000'>"..doll.."<font color='#FFFF'> es ahora tu muñeco boodo!!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement