×

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
  • /
  • Lights
« ‹ 2 / 3 › »
Lights
Tailtong
« Citoyen »
1386425940000
    • Tailtong#0000
    • Profil
    • Derniers messages
    • Tribu
#21
  0
I used that in the code I posted a few minutes ago?
Papero
« Citoyen »
1386425940000
    • Papero#9240
    • Profil
    • Derniers messages
    • Tribu
#22
  0
Tailtong a dit :
I used that in the code I posted a few minutes ago?

didnt try the code ;^; apologies.
Mikuhl
« Citoyen »
1386426060000
    • Mikuhl#3311
    • Profil
    • Derniers messages
    • Tribu
#23
  0
Baasbase a dit :
Please try
and then come back here.

Please edit the OP back, it was correct in the first edition.

Hmm. Last time I did something and looped it 6 times and it only did it 5. Maybe I was just seeing things. ._.


Maybe one day tig will let us change the color of particles.
Leafileaf
« Citoyen »
1386426240000
    • Leafileaf#0000
    • Profil
    • Derniers messages
    • Tribu
#24
  0
Oh gosh particle spam. I don't think it'll be good for those laggy people with connections that could break any second.
Abdeltif
« Citoyen »
1386426360000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#25
  0
Tailtong a dit :
I used that in the code I posted a few minutes ago?

If i do !par 800 then do !par 50
Some textAreas stay in the same place :(
Tailtong
« Citoyen »
1386426720000
    • Tailtong#0000
    • Profil
    • Derniers messages
    • Tribu
#26
  0
Abdeltif a dit :
If i do !par 800 then do !par 50
Some textAreas stay in the same place :(

Fixed that.
Jaackster a dit :
Maybe one day tig will let us change the color of particles.

I hope that too..
Leafileaf a dit :
Oh gosh particle spam. I don't think it'll be good for those laggy people with connections that could break any second.

That's why you can set the amount of particles.
Thewildnes
« Citoyen »
1386429660000
    • Thewildnes#0000
    • Profil
    • Derniers messages
    • Tribu
#27
  0
Soooooooo GOOD
Safwanrockz
« Censeur »
1386429660000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#28
  0
Could you add a maximum number for pAtOnce? Something at the first if like:
if c:sub(0,3)=="par" and tonumber(c:sub(5))<=800
Tailtong
« Citoyen »
1386439800000
    • Tailtong#0000
    • Profil
    • Derniers messages
    • Tribu
#29
  0
Okay, I added a maximum of 1000.
Jjaakkee
« Citoyen »
1386445920000
    • Jjaakkee#0000
    • Profil
    • Derniers messages
#30
  0
Perfect for festivities such as Christmas, which is just around the corner.
+Minstens
« Citoyen »
1386452040000
    • +Minstens#0000
    • Profil
    • Derniers messages
    • Tribu
#31
  0
!par 1000 = Crash, fix it.
EDIT: Script 1 not work
Tailtong
« Citoyen »
1386453840000
    • Tailtong#0000
    • Profil
    • Derniers messages
    • Tribu
#32
  0
Don't set the amount of particles to 1000 if you crash with that number.
Script 1 works.
+Minstens
« Citoyen »
1386456420000
    • +Minstens#0000
    • Profil
    • Derniers messages
    • Tribu
#33
  0
Tailtong a dit :
Don't set the amount of particles to 1000 if you crash with that number.
Script 1 works.

Is did not work before and had activated particles. But this time was not activated and it seems that now it works.
a dit :
lights={"1","2","4","9","11","13"}
pAtOnce=50
radiusX=100
radiusY=100

function eventLoop(ct,tr)
for i=1,pAtOnce do
tfm.exec.displayParticle(lights[math.random(#lights)],math.random(400-radiusX*4,400+radiusX*4),math.random(200-radiusY*2,200+radiusY*2),0,0,0,0,nil)
end
end

tfm.exec.disableAutoShaman(true)

tfm.exec.disableAutoTimeLeft(true)

tfm.exec.newGame('<C><P /><Z><S><S L="30" o="2f1b03" H="400" X="15" Y="200" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="30" o="2f1b03" X="785" Y="200" T="12" H="400" /><S L="800" o="2f1b03" H="30" X="400" Y="385" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="800" o="2f1b03" X="400" Y="15" T="12" H="30" /></S><D><P C="492f0e" Y="0" T="34" P="0,0" X="0" /><P C="746233" Y="370" T="96" P="0,0" X="670" /><P P="0,0" Y="332" T="21" X="395" /><P P="0,1" Y="332" T="21" X="502" /><P X="100" Y="375" T="57" P="0,0" /><P P="0,1" Y="375" T="57" X="185" /><P X="165" Y="318" T="57" P="0,1" /><P P="0,0" Y="318" T="57" X="120" /><P X="145" Y="260" T="57" P="0,0" /><P X="94" Y="195" T="62" P="0,0" /><P X="170" Y="86" T="59" P="0,0" /><P C="bbc4" Y="166" T="60" X="190" P="0,0" /><P C="af00c4" Y="206" T="60" X="148" P="0,0" /><P C="2cc4" Y="216" T="60" X="107" P="0,0" /><P C="1c400" Y="238" T="60" X="190" P="0,0" /><P C="c54000" Y="267" T="60" X="84" P="0,0" /><P C="c2c400" Y="274" T="60" X="151" P="0,0" /><P X="122" Y="96" T="54" P="0,0" /><P X="673" Y="286" T="54" P="0,0" /><P X="627" Y="284" T="55" P="0,0" /><P X="30" Y="30" T="61" P="0,0" /><P X="135" Y="30" T="61" P="0,0" /><P X="245" Y="30" T="61" P="0,0" /><P X="460" Y="30" T="61" P="0,0" /><P X="575" Y="30" T="61" P="0,0" /><P X="690" Y="30" T="61" P="0,0" /><P X="98" Y="369" T="63" P="0,0" /><P X="184" Y="369" T="63" P="0,1" /><P X="241" Y="371" T="62" P="0,0" /><P X="675" Y="170" T="53" P="0,0" /><P C="d7622,fb0702" Y="25" T="56" X="300" P="0,0" /><P X="687" Y="283" T="52" P="0,0" /><P X="390" Y="370" T="17" P="0,0" /><P X="495" Y="370" T="17" P="0,0" /><P X="580" Y="370" T="16" P="0,0" /><P X="310" Y="370" T="16" P="0,0" /><P X="445" Y="335" T="31" P="0,0" /><P X="227" Y="74" T="64" P="0,0" /><P X="435" Y="240" T="76" P="0,0" /><DS Y="355" X="750" /></D><O /></Z></C>')

tfm.exec.disableAutoNewGame(true)

tfm.exec.setUIMapName("")

tfm.exec.setUIShamanName("")

tfm.exec.disableAfkDeath(true)

tfm.exec.disableAutoTimeLeft(true)

I created a script from the first, and is a good map with Christmas lights.
Tailtong
« Citoyen »
1386457320000
    • Tailtong#0000
    • Profil
    • Derniers messages
    • Tribu
#34
  0
+Minstens a dit :
Is did not work before and had activated particles. But this time was not activated and it seems that now it works.

I created a script from the first, and is a good map with Christmas lights.

Nice map and good use of the script!
Empty
« Citoyen »
1386458460000
    • Empty#8994
    • Profil
    • Derniers messages
    • Tribu
#35
  0
I made a script equal this, but my pc cooler no work correctly, shows 80ºC and shutdown imediately
Xanmeow
« Citoyen »
1386474480000
    • Xanmeow#0000
    • Profil
    • Derniers messages
    • Tribu
#36
  0
Unimeowse a dit :
The limit is 1600 I believe. That's because it exceeds 40ms per 4 second

no you can change this:

Script a dit :

function eventLoop(ct,tr)
for i=1,pAtOnce dolights={"1","2","4","9","11","13"}
pAtOnce=50
radiusX=100
radiusY=100

tfm.exec.displayParticle(lights[math.random(#lights)],math.random(400-radiusX*4,400+radiusX*4),math.random(200-radiusY*2,200+radiusY*2),0,0,0,0,nil)
end
end

function eventChatCommand(p,c)
if c:sub(0,3)=="par" and tonumber(c:sub(5))<=1000 then
pAtOnce=c:sub(5)
elseif c:sub(0,2)=="rx" then
radiusX=c:sub(4)
elseif c:sub(0,2)=="ry" then
radiusY=c:sub(4)
end
print("<v>["..p.."] <n>"..c)
end

system.disableChatCommandDisplay("par",true)
system.disableChatCommandDisplay("rx",true)
system.disableChatCommandDisplay("ry",true)
print("<p align='left'>\n<n>Hello there, want <j>less/more lights <n>on the screen? Type <j>'!par number'<n>!\nWant the lights to go <j>further/closer<n>? Type <j>'!rx number' <n>or <j>'!ry number'<n>!</p>")

change that number to the limit you want! you can make it<=10000
Abdeltif
« Citoyen »
1386495960000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#37
  0
A more real script : goes down and moves >
a dit :
lights={"1","2","4","9","11","13"}
pAtOnce=50
radiusX=100
radiusY=100

function eventLoop(ct,tr)
for i=1,pAtOnce do
tfm.exec.displayParticle(lights[math.random(#lights)],math.random(400-radiusX*4,400+radiusX*4),math.random(120-radiusY*1.7,212+radiusY*1.8),-0.2,0.5,-0.05,0.05,nil)
end
end

function eventChatCommand(p,c)
if c:sub(0,3)=="par" and tonumber(c:sub(5))<=899 then
pAtOnce=c:sub(5)
elseif c:sub(0,2)=="rx" then
radiusX=c:sub(4)
elseif c:sub(0,2)=="ry" then
radiusY=c:sub(4)
end
print("<v>["..p.."] <n>"..c)
end

system.disableChatCommandDisplay("par",true)
system.disableChatCommandDisplay("rx",true)
system.disableChatCommandDisplay("ry",true)
print("<p align='left'>\n<n>Hello there, want <j>less/more lights <n>on the screen? Type <j>'!par number'<n>!\nWant the lights to go <j>further/closer<n>? Type <j>'!rx number' <n>or <j>'!ry number'<n>!</p>"

Do u like it ? :3
Tailtong
« Citoyen »
1386505080000
    • Tailtong#0000
    • Profil
    • Derniers messages
    • Tribu
#38
  0
Abdeltif a dit :
A more real script : goes down and moves &gt;


Do u like it ? :3

You gave me an idea for an update..

..now you can type !xs number or !ys number to make the lights move!
Leafileaf
« Citoyen »
1386514020000
    • Leafileaf#0000
    • Profil
    • Derniers messages
    • Tribu
#39
  0
Tailtong a dit :
You gave me an idea for an update..

..now you can type !xs number or !ys number to make the lights move!

Why not play with the acceleration while you're at it?
Abdeltif
« Citoyen »
1386608880000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#40
  0
Can you please change that print function to ui.addTextArea ? Because my tribe mates can't see the printed text
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Lights
« ‹ 2 / 3 › »
© Atelier801 2018

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

Version 1.27