×

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
  • /
  • [Module] #PlaceBloc (plagiat Minecraft)
[Module] #PlaceBloc (plagiat Minecraft)
Nicolasledu
« Citoyen »
1401291120000
    • Nicolasledu#0000
    • Profil
    • Derniers messages
    • Tribu
#1
  0
Hi everyone, I'll share a little code that I did! It uses the new functions for placing ground or remove!


http://i.imgur.com/2e2Afn2.png
Just click on the white dots to place a block and the red dots to delete!

To place different block, here are the commands:

!type 0 : Wood
!type 1 : Ice
!type 2 : Trampoline
!type 3 : Lava
!type 4 : Chocolate
!type 5 : Earth
!type 6 : Grass
!type 7 : Sand
!type 8 : Cloude
!type 9 : Water
!type 10 : Stone
!type 11 : Snow
!type 12 : Rectangle
!type 13 : Circle


Code : http://pastebin.com/JU6kRMia

Sorry for my bad english, i'm french !
Arber
« Citoyen »
1401291480000
    • Arber#0000
    • Profil
    • Derniers messages
    • Tribu
#2
  0
hehe seems nice, but the friction makes it annoying i think :p, it should be different from others, i see your working on it, good luck!
Bruno
« Censeur »
1401302760000
    • Bruno#3852
    • Profil
    • Derniers messages
    • Tribu
#3
  0
The best script of the new lua function!
Nicolasledu
« Citoyen »
1401302760000
    • Nicolasledu#0000
    • Profil
    • Derniers messages
    • Tribu
#4
  0
Zzmacth a dit :
The best script of the new lua function!

Arber a dit :
hehe seems nice, but the friction makes it annoying i think :p, it should be different from others, i see your working on it, good luck!

Thanks !
Noktats
1401302880000
    • Noktats#0000
    • Profil
    • Derniers messages
#5
[Modéré par Takumisyn, raison : Spam]
Bruno
« Censeur »
1401303240000
    • Bruno#3852
    • Profil
    • Derniers messages
    • Tribu
#6
  0
http://prntscr.com/3nggr3

and....

http://prntscr.com/3nggvz

Minigame suggestion: You must to remove the ices to complete the way of the mice. But you can remove only X ices!
Nicolasledu
« Citoyen »
1401312720000
    • Nicolasledu#0000
    • Profil
    • Derniers messages
    • Tribu
#7
  0
New version :
http://pastebin.com/JU6kRMia

Each ground has its own properties
Bug fix
Mymicemy
« Citoyen »
1401361620000
    • Mymicemy#0000
    • Profil
    • Derniers messages
    • Tribu
#8
  0
Wow, amazing! Er, why i can stand on water ground?
Lolzermp
« Citoyen »
1401385680000
    • Lolzermp#0000
    • Profil
    • Derniers messages
#9
  0
Mymicemy a dit :
Wow, amazing! Er, why i can stand on water ground?

bug it needs he/she fix
Bruno
« Censeur »
1401541200000
    • Bruno#3852
    • Profil
    • Derniers messages
    • Tribu
#10
  0
Edition BR: Topic-756076
I added new functions!
Lisathecute
« Citoyen »
1401568740000
    • Lisathecute#0000
    • Profil
    • Derniers messages
#11
  0
Bug: If you make a bigger map, I noticed the dots only cover the 800x400 bit (a normal map).
Syrius
« Consul »
1496999520000
    • Syrius#8114
    • Profil
    • Derniers messages
    • Tribu
#12
  0
Nice, I edited a little bit, now it contains invis ground and cobweb ground.
Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
-- By Nicolasledu
tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoShaman(true)
tfm.exec.disableAutoTimeLeft(true)
tfm.exec.newGame(0)

prop = {}
prop[0] = {type=0,width=40,height=40,friction=0.3,restitution=0.2}
prop[1] = {type=1,width=40,height=40,friction=0,restitution=0.2}
prop[2] = {type=2,width=40,height=40,friction=0,restitution=1.2}
prop[3] = {type=3,width=40,height=40,friction=0,restitution=20}
prop[4] = {type=4,width=40,height=40,friction=20,restitution=0.2}
prop[5] = {type=5,width=40,height=40,friction=0.3,restitution=0.2}
prop[6] = {type=6,width=40,height=40,friction=0.3,restitution=0.2}
prop[7] = {type=7,width=40,height=40,friction=0.1,restitution=0.2}
prop[8] = {type=8,width=40,height=40,friction=0.3,restitution=0.2,miceCollision=false}
prop[9] = {type=9,width=40,height=40,friction=0.3,restitution=0.2}
prop[10] = {type=10,width=40,height=40,friction=0.3,restitution=0}
prop[11] = {type=11,width=40,height=40,friction=0.05,restitution=0.1}
prop[12] = {type=12,width=40,height=40,friction=0.3,restitution=0.2,color=0xaaaaaa}
prop[13] = {type=13,width=20,friction=0.3,restitution=0.2,color=0xaaaaaa}
prop[14] = {type=14,width=40,height=40,friction=0.3,restitution=0.2,color=0xaaaaaa}
prop[15] = {type=15,width=40,height=40,friction=0.3,restitution=0.2,color=0xaaaaaa}


function eventTextAreaCallback(idt,name,callback)
if callback=="place" then
local bloc = blocplayer[name]
tfm.exec.addPhysicObject(idt,blocx[idt] + 20,blocy[idt] + 20,prop[tonumber(bloc)] or prop[0])
ui.addTextArea(idt, "<a href='event:remove'><p align='center'><font size='20'><r>•</font></p></a>", nil, blocx[idt] + 5, blocy[idt] +8, 30, 30,nil,nil,0,false)
elseif callback=="remove" then
tfm.exec.removePhysicObject(idt)
ui.addTextArea(idt, "<a href='event:place'><p align='center'><font size='20'>•</font></p></a>", nil, blocx[idt] + 5, blocy[idt] +8, 30, 30,nil,nil,0,false)
end
end
function eventNewPlayer(p)
tfm.exec.respawnPlayer(p)
end
function eventPlayerDied(p)
tfm.exec.respawnPlayer(p)
end
function eventPlayerWon(p)
tfm.exec.respawnPlayer(p)
end

function eventChatCommand(playerName, command)
if command:sub(0,4) == "type" then
blocplayer[playerName] = command:sub(5)
end
end
function eventNewGame()
blocplayer = {}

for playerName,p in pairs(tfm.get.room.playerList) do
blocplayer[playerName] = 0
end
xp = 0
yp = 0
id = 0
blocx = {}
blocy = {}
for a = 1,200 do
id = id + 1
blocx[id] = xp
blocy[id] = yp
ui.addTextArea(id, "<a href='event:place'><p align='center'><font size='20'>•</font></p></a>", nil, xp+5, yp+8, 30, 30,nil,nil,0,false)

xp = xp+40
if xp == 800 then
xp = 0
yp = yp + 40
end
end
end
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Module] #PlaceBloc (plagiat Minecraft)
© Atelier801 2018

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

Version 1.27