×

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
  • /
  • Modules
  • /
  • •LUA - edytor pokoju•
« ‹ 14 / 20 › »
•LUA - edytor pokoju•
Rohere
« Consul »
1454148900000
    • Rohere#0000
    • Profil
    • Derniers messages
    • Tribu
#261
  0
klakser a dit :
a jak zrobić by cząstki leciały od myszy? bo tam się wpisuje x, y a ja chce by od myszy leciało to jak wypłenić to x, y?

local x,y,id=tfm.get.room.playerList[nick].x,tfm.get.room.playerList[nick].y,nick - Sprawia że dany obiekt/grunt/cząsteczka pojawia się na graczu

Dernière modification le 1454148960000
Sebafrancuz
« Consul »
1454151900000
    • Sebafrancuz#0000
    • Profil
    • Derniers messages
    • Tribu
#262
  0
klakser a dit :
a jak zrobić by cząstki leciały od myszy? bo tam się wpisuje x, y a ja chce by od myszy leciało to jak wypłenić to x, y?

tfm.get.room.playerList[playerName].x, tfm.get.room.playerList[playerName].y
Rohere
« Consul »
1454152320000
    • Rohere#0000
    • Profil
    • Derniers messages
    • Tribu
#263
  0
sebafrancuz a dit :
klakser a dit :
a jak zrobić by cząstki leciały od myszy? bo tam się wpisuje x, y a ja chce by od myszy leciało to jak wypłenić to x, y?

tfm.get.room.playerList[playerName].x, tfm.get.room.playerList[playerName].y

Ja już podawałem -,-
Klakser
« Consul »
1454152980000
    • Klakser#0000
    • Profil
    • Derniers messages
    • Tribu
#264
  0
Rohere a dit :
klakser a dit :
a jak zrobić by cząstki leciały od myszy? bo tam się wpisuje x, y a ja chce by od myszy leciało to jak wypłenić to x, y?

local x,y,id=tfm.get.room.playerList[nick].x,tfm.get.room.playerList[nick].y,nick - Sprawia że dany obiekt/grunt/cząsteczka pojawia się na graczu

a gdzie to dać by to była cząstka?
Sebafrancuz
« Consul »
1454153160000
    • Sebafrancuz#0000
    • Profil
    • Derniers messages
    • Tribu
#265
  0
klakser a dit :
Rohere a dit :
klakser a dit :
a jak zrobić by cząstki leciały od myszy? bo tam się wpisuje x, y a ja chce by od myszy leciało to jak wypłenić to x, y?

local x,y,id=tfm.get.room.playerList[nick].x,tfm.get.room.playerList[nick].y,nick - Sprawia że dany obiekt/grunt/cząsteczka pojawia się na graczu

a gdzie to dać by to była cząstka?

możesz zrobić tak
function eventLoop(a,b)
for playerName, player in pairs(tfm.get.room.playerList) do
tfm.exec.displayParticle(13, tfm.get.room.playerList[playerName].x,tfm.get.room.playerList[playerName].y,0,0,0,0,nil)
end
end

Dernière modification le 1454161500000
Klakser
« Consul »
1454157000000
    • Klakser#0000
    • Profil
    • Derniers messages
    • Tribu
#266
  0
sebafrancuz a dit :
klakser a dit :
Rohere a dit :
klakser a dit :
a jak zrobić by cząstki leciały od myszy? bo tam się wpisuje x, y a ja chce by od myszy leciało to jak wypłenić to x, y?

local x,y,id=tfm.get.room.playerList[nick].x,tfm.get.room.playerList[nick].y,nick - Sprawia że dany obiekt/grunt/cząsteczka pojawia się na graczu

a gdzie to dać by to była cząstka?

możesz zrobić tak
function eventLoop(a,b)
for playerName, player in pairs(tfm.get.room.playerList) do
tfm.exec.displayParticle(idCząstki, tfm.get.room.playerList[player].x,tfm.get.room.playerList[player].y,vx,vy,ax,ay,nil)
end
end

nie działa
Rohere
« Consul »
1454160120000
    • Rohere#0000
    • Profil
    • Derniers messages
    • Tribu
#267
  0
sebafrancuz a dit :
klakser a dit :
Rohere a dit :
klakser a dit :
a jak zrobić by cząstki leciały od myszy? bo tam się wpisuje x, y a ja chce by od myszy leciało to jak wypłenić to x, y?

local x,y,id=tfm.get.room.playerList[nick].x,tfm.get.room.playerList[nick].y,nick - Sprawia że dany obiekt/grunt/cząsteczka pojawia się na graczu

a gdzie to dać by to była cząstka?

możesz zrobić tak
function eventLoop(a,b)
for playerName, player in pairs(tfm.get.room.playerList) do
tfm.exec.displayParticle(idCząstki, tfm.get.room.playerList[player].x,tfm.get.room.playerList[player].y,vx,vy,ax,ay,nil)
end
end

To nie działa, poprawne to:


function eventLoop()
for nick, player in pairs(tfm.get.room.playerList) do
local x,y,id=tfm.get.room.playerList[nick].x,tfm.get.room.playerList[nick].y,nick
tfm.exec.displayParticle(13,x, y, 0, 0, 0, 0, nil)
end
end



Niestety, gdy się poruszamy cząsteczka zostaje na pół sekundy

Dernière modification le 1454160300000
Klakser
« Consul »
1454161980000
    • Klakser#0000
    • Profil
    • Derniers messages
    • Tribu
#268
  0
Rohere a dit :
sebafrancuz a dit :
klakser a dit :
Rohere a dit :
klakser a dit :
a jak zrobić by cząstki leciały od myszy? bo tam się wpisuje x, y a ja chce by od myszy leciało to jak wypłenić to x, y?

local x,y,id=tfm.get.room.playerList[nick].x,tfm.get.room.playerList[nick].y,nick - Sprawia że dany obiekt/grunt/cząsteczka pojawia się na graczu

a gdzie to dać by to była cząstka?

możesz zrobić tak
function eventLoop(a,b)
for playerName, player in pairs(tfm.get.room.playerList) do
tfm.exec.displayParticle(idCząstki, tfm.get.room.playerList[player].x,tfm.get.room.playerList[player].y,vx,vy,ax,ay,nil)
end
end

To nie działa, poprawne to:


function eventLoop()
for nick, player in pairs(tfm.get.room.playerList) do
local x,y,id=tfm.get.room.playerList[nick].x,tfm.get.room.playerList[nick].y,nick
tfm.exec.displayParticle(13,x, y, 0, 0, 0, 0, nil)
end
end



Niestety, gdy się poruszamy cząsteczka zostaje na pół sekundy

a tylko na mnie jest cząstka??
Sebafrancuz
« Consul »
1454161980000
    • Sebafrancuz#0000
    • Profil
    • Derniers messages
    • Tribu
#269
  0
klakser a dit :
Rohere a dit :
sebafrancuz a dit :
klakser a dit :
Rohere a dit :
klakser a dit :
a jak zrobić by cząstki leciały od myszy? bo tam się wpisuje x, y a ja chce by od myszy leciało to jak wypłenić to x, y?

local x,y,id=tfm.get.room.playerList[nick].x,tfm.get.room.playerList[nick].y,nick - Sprawia że dany obiekt/grunt/cząsteczka pojawia się na graczu

a gdzie to dać by to była cząstka?

możesz zrobić tak
function eventLoop(a,b)
for playerName, player in pairs(tfm.get.room.playerList) do
tfm.exec.displayParticle(idCząstki, tfm.get.room.playerList[player].x,tfm.get.room.playerList[player].y,vx,vy,ax,ay,nil)
end
end

To nie działa, poprawne to:


function eventLoop()
for nick, player in pairs(tfm.get.room.playerList) do
local x,y,id=tfm.get.room.playerList[nick].x,tfm.get.room.playerList[nick].y,nick
tfm.exec.displayParticle(13,x, y, 0, 0, 0, 0, nil)
end
end



Niestety, gdy się poruszamy cząsteczka zostaje na pół sekundy

a tylko na mnie jest cząstka??

na wszystkich
Klakser
« Consul »
1454162760000
    • Klakser#0000
    • Profil
    • Derniers messages
    • Tribu
#270
  0
zróbcie by to:

function eventLoop()
for nick, player in pairs(tfm.get.room.playerList) do
local x,y,id=tfm.get.room.playerList[nick].x,tfm.get.room.playerList[nick].y,nick
tfm.exec.displayParticle(11,x, y, 0, 0, 0, 0.1, nil)
tfm.exec.displayParticle(13,x, y, 0.5, 0.1, 0, 0.1, nil)
tfm.exec.displayParticle(9,x, y, 1, 0, 0, 0.1, nil)
tfm.exec.displayParticle(11,x, y, -1, 1, 0, 0.1, nil)
tfm.exec.displayParticle(13,x, y, -0.4, 1, 0, 0.1, nil)
end
end

było tylko dla osoby co wpisze !ozdoba
Sebafrancuz
« Consul »
1454162940000
    • Sebafrancuz#0000
    • Profil
    • Derniers messages
    • Tribu
#271
  0
klakser a dit :
zróbcie by to:

function eventLoop()
for nick, player in pairs(tfm.get.room.playerList) do
local x,y,id=tfm.get.room.playerList[nick].x,tfm.get.room.playerList[nick].y,nick
tfm.exec.displayParticle(11,x, y, 0, 0, 0, 0.1, nil)
tfm.exec.displayParticle(13,x, y, 0.5, 0.1, 0, 0.1, nil)
tfm.exec.displayParticle(9,x, y, 1, 0, 0, 0.1, nil)
tfm.exec.displayParticle(11,x, y, -1, 1, 0, 0.1, nil)
tfm.exec.displayParticle(13,x, y, -0.4, 1, 0, 0.1, nil)
end
end

było tylko dla osoby co wpisze !ozdoba

o={}
for pl in pairs(tfm.get.room.playerList) do
o[pl]=0
end
function eventChatCommand(pl,k)
if k=="ozdoba" then
o[pl]=1
end
end

function eventLoop()
for nick, player in pairs(tfm.get.room.playerList) do
if o[nick]==1 then
local x,y,id=tfm.get.room.playerList[nick].x,tfm.get.room.playerList[nick].y,nick
tfm.exec.displayParticle(11,x, y, 0, 0, 0, 0.1, nil)
tfm.exec.displayParticle(13,x, y, 0.5, 0.1, 0, 0.1, nil)
tfm.exec.displayParticle(9,x, y, 1, 0, 0, 0.1, nil)
tfm.exec.displayParticle(11,x, y, -1, 1, 0, 0.1, nil)
tfm.exec.displayParticle(13,x, y, -0.4, 1, 0, 0.1, nil)
end
end
end
Klipus
« Citoyen »
1455973980000
    • Klipus#0000
    • Profil
    • Derniers messages
    • Tribu
#272
  0
tfm.exec.playEmote(nil, 24)
-- Tańczenie tej samby karnawałowej
Tobibir
1456495560000
    • Tobibir#0000
    • Profil
    • Derniers messages
    • Tribu
#273
[Modéré par Mesmera, raison : ~]
Maikeru
« Citoyen »
1457194320000
    • Maikeru#1000
    • Profil
    • Derniers messages
    • Tribu
#274
  0
Nowe ID Cząsteczek
  • 41 Fioletowa Kula
    • Brak błędów.
  • 42 Niebieskie Pióro
    • Błąd 1. Pojawia się tylko na ułamek sekundy.
    • Błąd 2. Nie może się poruszać.

Dernière modification le 1457194440000
Rohere
« Consul »
1457195340000
    • Rohere#0000
    • Profil
    • Derniers messages
    • Tribu
#275
  0
Mrmichas a dit :
Nowe ID Cząsteczek
  • 41 Fioletowa Kula
    • Brak błędów.
  • 42 Niebieskie Pióro
    • Błąd 1. Pojawia się tylko na ułamek sekundy.
    • Błąd 2. Nie może się poruszać.

To nie błąd tylko umiejętność
Maikeru
« Citoyen »
1457195880000
    • Maikeru#1000
    • Profil
    • Derniers messages
    • Tribu
#276
  0
Rohere a dit :
Mrmichas a dit :
Nowe ID Cząsteczek
  • 41 Fioletowa Kula
    • Brak błędów.
  • 42 Niebieskie Pióro
    • Błąd 1. Pojawia się tylko na ułamek sekundy.
    • Błąd 2. Nie może się poruszać.

To nie błąd tylko umiejętność

Chodzi o piórka, które pojawiają się w aktualnym evencie po napełnieniu paska.
Lukinha
« Citoyen »
1457616300000
    • Lukinha#3857
    • Profil
    • Derniers messages
#277
  0
Mrmichas a dit :
Rohere a dit :
Mrmichas a dit :
Nowe ID Cząsteczek
  • 41 Fioletowa Kula
    • Brak błędów.
  • 42 Niebieskie Pióro
    • Błąd 1. Pojawia się tylko na ułamek sekundy.
    • Błąd 2. Nie może się poruszać.

To nie błąd tylko umiejętność

Chodzi o piórka, które pojawiają się w aktualnym evencie po napełnieniu paska.

Nie pojawiają się. :/
Tinaijula
« Consul »
1457874300000
    • Tinaijula#0000
    • Profil
    • Derniers messages
    • Tribu
#278
  0
Jak wpisać ten kod? Bo wpisuje, wpisuje i nic. :<
Klipus
« Citoyen »
1457874480000
    • Klipus#0000
    • Profil
    • Derniers messages
    • Tribu
#279
  0
a masz uprawnienia do wczytywania map?
Rkubi
« Censeur »
1458806940000
    • Rkubi#0000
    • Profil
    • Derniers messages
    • Tribu
#280
  0
ui.showColorPicker(Int id, String nick, Int kolorDomyślny, String tytuł)
• Aktualizuje pole tekstowe. Pole aktualizuje się wszystkim, gdy [nick] to nil.

ui.updateTextArea(Int id, String tekst, String nick)
• Wstawia okienko wyboru koloru.

Nie na odwrót?
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • •LUA - edytor pokoju•
« ‹ 14 / 20 › »
© Atelier801 2018

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

Version 1.27