×

Langue

Fermer
Atelier 801
  • Forums
  • Dev Tracker
  • Connexion
    • English Français
      Português do Brasil Español
      Türkçe Polski
      Magyar Română
      العربية Skandinavisk
      Nederlands Deutsch
      Bahasa Indonesia Русский
      中文 Filipino
      Lietuvių kalba 日本語
      Suomi עברית
      Italiano Česky
      Hrvatski Slovensky
      Български Latviešu
      Estonian
  • Langue
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • Module API FAQ
« ‹ 21 / 38 › »
Module API FAQ
Mousechris
« Censeur »
1382923500000
    • Mousechris#0000
    • Profil
    • Derniers messages
    • Tribu
#401
  0
you could just line up all the maps for PX in a map rotation, extra work but gets the job done
Sertankul
1382952960000
    • Sertankul#0000
    • Profil
    • Derniers messages
#402
[Modéré par Whiskypickle, raison : Spam]
Legendlar
« Citoyen »
1382954460000
    • Legendlar#0000
    • Profil
    • Derniers messages
    • Tribu
#403
  0
So I was messing around with Lua having fun with an edited module code and I was curious if you can make objects spawned transparent? (I'd like to have some more fun with anti-spirit if possible)
Issey
« Citoyen »
1382961900000
    • Issey#0000
    • Profil
    • Derniers messages
#404
  0
Legendlar a dit :
So I was messing around with Lua having fun with an edited module code and I was curious if you can make objects spawned transparent? (I'd like to have some more fun with anti-spirit if possible)

tfm.exec.addShamanObject(Int objectId, Int xPosition, Int yPosition, Int angle, Int xSpeed, Int ySpeed, Boolean ghost)
Cincle
« Citoyen »
1382979060000
    • Cincle#0000
    • Profil
    • Derniers messages
    • Tribu
#405
  0
Blah,how to make lua bot?
Beachking
« Citoyen »
1382979180000
    • Beachking#0000
    • Profil
    • Derniers messages
    • Tribu
#406
  0
Cincle a dit :
Blah,how to make lua bot?

Yeah Idk if it was an actualy lua bot. Bush loaded a script throught the bot but Idk how.
Cincle
« Citoyen »
1382979300000
    • Cincle#0000
    • Profil
    • Derniers messages
    • Tribu
#407
  0
Beachking a dit :
Yeah Idk if it was an actualy lua bot. Bush loaded a script throught the bot but Idk how.

LIKE A HAXOR! (lol joking)
Bloqenorte
1383003240000
    • Bloqenorte#0000
    • Profil
    • Derniers messages
    • Tribu
#408
[Modéré par Katburger]
Letmentaalis
1383004260000
    • Letmentaalis#0000
    • Profil
    • Derniers messages
#409
[Modéré par Katburger, raison : Spam]
Issey
« Citoyen »
1383048660000
    • Issey#0000
    • Profil
    • Derniers messages
#410
  0
Beachking a dit :
Yeah Idk if it was an actualy lua bot. Bush loaded a script throught the bot but Idk how.

it wasn't really a bot even, he was playing for a while on that acc xD
Denismose
« Citoyen »
1383061980000
    • Denismose#0000
    • Profil
    • Derniers messages
#411
  0
What are room for pokemon?
sourse: cheese.formice album.
Shamousey
« Consul »
1383062220000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#412
  0
Denismose a dit :
What are room for pokemon?
sourse: cheese.formice album.

The Pokémon thing was just an image test when the image related functions were added to the Module API, there's no room for it.
Letatsus
« Citoyen »
1383068280000
    • Letatsus#0000
    • Profil
    • Derniers messages
#413
  0
What is the code to fly ?
Hophipmice
« Citoyen »
1383068280000
    • Hophipmice#0000
    • Profil
    • Derniers messages
    • Tribu
#414
  0
Letatsus a dit :
What is the code to fly ?

a dit :
function eventNewPlayer(name)
tfm.exec.bindKeyboard(name,32,true,true)
end

for name,player in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end

function eventKeyboard(name,key,down,x,y)
if key==32 then
tfm.exec.movePlayer(name,0,0,true,0,-50,false)
end
end

.
Next time ask for it here: Topic-462959
Siuker
« Citoyen »
1383111660000
    • Siuker#0000
    • Profil
    • Derniers messages
    • Tribu
#415
  0
In motion,will tfm.exec.movePlayer() going to be improved?
I barely learned this code by interest and I found that
1.your speed is not uniform velocity,it seems to have a speed of rune to push you at back.So when I press it madly,I can run faster than what it was supposed to be.
Also, when I hit something that reduces speed,the speed back to normal.
2.it's not excuted immediately.Even 10 addition speed can hinder me from wj and I wj like dumb

is it the purpose of hack prevent?
Makinit
« Citoyen »
1383127800000
    • Makinit#0095
    • Profil
    • Derniers messages
    • Tribu
#416
  0
Siuker a dit :
1.your speed is not uniform velocity,it seems to have a speed of rune to push you at back.So when I press it madly,I can run faster than what it was supposed to be.

You can set speeds to a specific value by using an offset argument of false: tfm.exec.movePlayer(name, 0, 0, true, vx, vy, false)
Siuker a dit :
Also, when I hit something that reduces speed,the speed back to normal.

Well, that's just physics doing what it's supposed to do.
Siuker a dit :
2.it's not excuted immediately.Even 10 addition speed can hinder me from wj and I wj like dumb

There will always be a delay in module actions because they run server-side. For example, a client sends a keypress to the server -> eventKeyboard is called which calls tfm.exec.movePlayer -> the server sends back an update of the player's speed to the clients. The delay depends on your ping.
Zyx
« Censeur »
1383258480000
    • Zyx#8690
    • Profil
    • Derniers messages
#417
  0
My friend who knows about lua said he was going to make a script.

So pasted it into the chat and this was it:

tfm.exec.movePlayer(String playername)

Is this a valid function?

--

tfm.exec...?

He asked me what to add to find the necessary functions so he could make a script to teleport in the Tribe House.

He knows a bit of Lua.
Jordy
« Consul »
1383258960000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#418
  0
Swirlfire a dit :
My friend who knows about lua said he was going to make a script.

So pasted it into the chat and this was it:

tfm.exec.movePlayer(String playername)

Is this a valid function?

--

tfm.exec...?

He asked me what to add to find the necessary functions so he could make a script to teleport in the Tribe House.

He knows a bit of Lua.

This is the full function:

a dit :
Tigrounette said:
tfm.exec.movePlayer(String playerName, Int xPosition, Int yPosition, Boolean offset, Int xSpeed, Int ySpeed, Boolean offset)
Marliaaa
« Citoyen »
1383321600000
    • Marliaaa#0000
    • Profil
    • Derniers messages
    • Tribu
#419
  0
how to make a minigame
Makinit
« Citoyen »
1383323760000
    • Makinit#0095
    • Profil
    • Derniers messages
    • Tribu
#420
  0
Marliaaa a dit :
how to make a minigame

Look at the documentation and examples in this subforum and try stuff.
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • Module API FAQ
« ‹ 21 / 38 › »
© Atelier801 2018

Equipe Conditions Générales d'Utilisation Politique de Confidentialité Contact

Version 1.27