×

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
  • /
  • Éditeur de cartes
  • /
  • [Tips and Tricks] List of Useful Joint Mechanisms
[Tips and Tricks] List of Useful Joint Mechanisms
Sherr
« Censeur »
1515903180000
    • Sherr#0095
    • Profil
    • Derniers messages
    • Tribu
#1
  23
Several years ago, Tigrounette added joints into the map editor, opening a new door of possibilities with mechanism maps. Unfortunately, he only permitted joints to be made through manually editing the HTML code, which is typically a confusing and aggravating process. To help alleviate the stress, I decided to share some joint tricks with you all today. This guide is intended for those with at least basic knowledge about joints. If you would like to learn from scratch, I recommend the joint tutorials listed here

Note: The examples show each block labeled with its respective Z index. If you want to copy+paste the codes into map editor, you can just directly copy the entire quotes (no need to remove dark comments). The codes get progressively harder, with 1 being the easiest and 9 being the hardest:

1. Basic Up-Down Movement
Example
https://i.gyazo.com/9d683d870b5585e07b6a5a715d5ca4ed.gif
Code

a dit :

<C><P /><Z><S><S X="404" L="810" H="15" c="1" Y="398" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S P="1,100000,0.3,0.2,0,1,0,0" L="41" o="324650" H="45" c="3" Y="242" T="12" X="205" /><S P="1,999999,0.3,0.2,0,0,0,0" L="10" o="324650" H="10" Y="170" T="12" X="204" /></S><D><DS Y="377" X="368" /></D><O><O C="11" Y="200" P="0" X="204" /></O><L>

<JP M1="1" M2="0" AXIS="0,1" /> // Ensures the lower ground only moves along Y-axis

<JR M1="2" P1="204,200" MV="Infinity,1.2" /> // Makes the upper ground spin at a speed of 1.2 around 204,200 (red nail)

<JD M2="2" M1="1" /> // Keeps the two grounds a strict distance apart at all times

</L></Z></C>



2. Basic Side-to-Side Movement
Example
https://i.gyazo.com/47e628d2cd7fdb38b3278fa05f5f8777.gif
Code

a dit :
<C><P /><Z><S><S P="0,0,0.3,0.2,0,0,0,0" L="810" X="404" c="1" Y="398" T="0" H="15" /><S X="407" L="41" o="324650" H="45" c="3" Y="259" T="12" P="1,100000,0.3,0.2,0,1,0,0" /><S L="10" o="324650" H="10" X="233" Y="259" T="12" P="1,999999,0.3,0.2,0,0,0,0" /></S><D><DS Y="377" X="368" /></D><O><O C="11" Y="259" X="275" P="0" /></O><L>

<JP M1="1" M2="0" AXIS="1,0" /> // Ensures Ground #1 only moves along X-axis

<JR M1="2" P1="275,259" MV="Infinity,1.2" /> // Makes Ground #2 spin at a speed of 1.2 around point 275,259 (red nail)

<JD M2="2" M1="1" /> // Keeps the two grounds a strict distance apart at all times

</L></Z></C>



3. Infinite Movement
*Note: If you want to do this, make sure you make a ground 0 with -1 mass
Example
https://i.gyazo.com/f765d86c3a8ca5c97ace8912deddcb07.gif
Code

a dit :

<C><P /><Z><S><S H="10" L="10" X="451" c="3" Y="588" T="4" P="1,-1,20,0.2,0,0,0,0" /><S L="874" H="66" X="397" Y="410" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S X="421" L="10" o="324650" H="39" c="1" Y="220" T="12" P="1,999999,1,0.2,0,1,0,0" /><S P="1,999999,1,0.2,0,1,0,0" L="10" o="324650" H="39" c="1" Y="110" T="12" X="428" /><S L="10" o="8e9ea6" X="-106" H="39" Y="220" T="12" P="0,0,0,9999,0,0,0,0" /><S L="10" o="8e9ea6" X="942" H="39" Y="220" T="12" P="0,0,,,0,0,0,0" /><S P="0,0,,,0,0,0,0" L="10" o="8e9ea6" H="39" Y="109" T="12" X="-48" /><S L="10" o="8e9ea6" H="39" X="933" Y="110" T="12" P="0,0,,9999,0,0,0,0" /></S><D><DS Y="362" X="415" /></D><O /><L>

<JP M1="2" MV="Infinity,8" AXIS="1,0" /> // Makes ground 2 move on X-axis (AXIS="1,0") in leftward direction (positive speed)

<JP M1="3" MV="Infinity,-8" AXIS="1,0" /> // Makes ground 3 move on X-axis (AXIS="1,0") in rightward direction (negative speed)

</L></Z></C>




4. Spinning Booster
Example1
https://i.gyazo.com/2c49e44e16f4bf608b236bc4768d1998.gif
Example2
https://i.gyazo.com/71ecf5d0bdaaef30562313e1ddec154a.gif
Code1

a dit :

<C><P /><Z><S><S X="399" L="810" Y="403" H="51" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="543" o="324650" L="156" Y="310" c="3" H="25" P="1,100000,9999,0.2,0,0,0,0" T="12" /><S X="543" o="558daa" L="10" Y="310" c="4" H="10" P="1,999999,0.3,0.2,0,0,0,0" T="13" /></S><D><DS X="396" Y="366" /></D><O /><L>

<JR MV="Infinity,3" M2="2" /> // Allows ground 2 to spin around itself

<JP M2="1" MV="Infinity,10" M1="2" AXIS="1,0" /> // Makes a booster (ground 1) that follows the spinning motion of ground 2

<JD M2="2" M1="1" /> // Keeps booster ground 1 at the same location as ground 2

</L></Z></C>

Code2

a dit :

<C><P /><Z><S><S L="802" H="47" X="400" Y="390" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S H="10" L="10" o="324650" X="527" c="4" Y="247" T="12" P="1,9999999999999999,0.3,0.2,0,0,0,0" /><S H="20" L="130" o="324650" X="526" c="3" Y="319" T="12" P="1,100000,500,0.2,0,1,0,0" /></S><D><DS Y="262" X="605" /></D><O /><L>

<JR MV="Infinity,1" M2="1" /> // Makes Ground 1 spin around itself

<JP M1="2" MV="Infinity,5" AXIS="1,0" /> // Makes Ground #2 a booster ground, see booster tutorial for more info

<JR M1="1" M2="2" /> // Allows Ground #2 to spin around Ground #1

</L></Z></C>



5. Swing back/forth around middle
Example
https://i.gyazo.com/940a6ada86fac2358af734a8eb58641b.gif
Code

a dit :

<C><P /><Z><S><S L="836" X="400" H="60" Y="416" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="10" o="324650" X="296" H="93" Y="326" T="12" P="1,10000,0.3,0.2,0,0,0,0" /><S L="10" o="324650" X="153" H="10" Y="296" T="13" P="1,999999,0.3,0.2,0,0,0,0" /><S L="10" o="324650" X="297" H="10" Y="269" T="12" P="1,100000,0.3,0.2,0,1,0,0" /></S><D><DS Y="371" X="428" /></D><O><O C="11" Y="271" P="0" X="153" /></O><L>

<JR M1="2" MV="Infinity, 2" P1="153,271" /><JD M2="2" M1="3" /> <JP M1="3" M2="0" AXIS="1,0" /> // Keeps ground 3 moving right/left; See Mech #2

<JR M2="3" M1="1" /> // Keeps ground 1 swinging in ground 3's direction

<JR M2="1" M1="0" /> // Keeps ground 1 stable

</L></Z></C>



6. Swing Back and Forth around Point
Example
https://i.gyazo.com/75bc5b9f7d1f4b2c17c27302e48a17fa.gif
Code
a dit :

<C><P /><Z><S><S L="800" X="398" H="29" Y="392" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S P="1,100000,0.3,0.2,0,0,0,0" L="10" o="ffffff" H="10" Y="294" T="12" X="392" /><S L="10" o="324650" X="280" H="10" Y="314" T="13" P="1,999999,0.3,0.2,0,0,0,0" /></S><D><DS Y="365" X="333" /></D><O><O C="11" Y="247" X="392" P="0" /><O C="11" Y="279" P="0" X="279" /></O><L>

<JR M1="1" P1="392,247" /> // Lets ground 1 swing around point 392,247

<JR M1="2" MV="Infinity, 1" P1="279,279" /> // Makes ground 2 spin

<JD M2="2" M1="1" /> // Distance link between ground 1 and 2

</L></Z></C>



7. Adding Color to Joints
Example
https://i.gyazo.com/78e29f5bc77488d12806353e2911c2af.gif
Code
a dit :

<C><P /><Z><S><S L="802" H="26" X="402" Y="392" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S H="19" L="19" o="77b1ce" X="517" c="4" Y="237" T="12" P="1,999999,0.3,0.2,0,0,0,0" /><S H="10" L="10" o="0" X="472" c="4" Y="236" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="1,100000,0.3,0.2,0,1,0,0" L="19" o="FF0000" H="19" Y="236" T="12" X="591" /></S><D><DS Y="368" X="404" /></D><O /><L>

<JR M1="1" MV="Infinity, 0.9" P1="472,236" />//This is the blue spinning ground//

<JP AXIS="1,0" M1="3" />//This makes the red ground only move right and left//

<JD M2="3" M1="1" />//This links the blue and red ground by distance//

<JD M2="2" c="000000,5,0.4,0" M1="1" />//This is a line that shows how blue ground spins around black ground//

<JD M2="3" c="ffffff,5,0.4,0" M1="1" />//This is a white line that shows how the red and blue grounds are linked//

<JP c="3FCE05,5,0.5,1" M1="3" />//This is the green line//

</L></Z></C>



8. Glide + Spin at Same Time
Example
https://i.gyazo.com/a3fa508acdc60c0f1b4b974e6ed33dd3.gif
Code
a dit :

<C><P /><Z><S><S L="800" X="402" H="57" Y="400" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S P="1,100000,0.3,0.2,0,0,0,0" L="17" o="324650" X="356" Y="257" T="12" H="17" /><S P="1,100000,0.3,0.2,0,0,0,0" L="11" o="324650" X="355" Y="201" T="13" H="10" /><S P="1,999999,0.3,0.2,0,0,0,0" L="10" o="324650" X="104" Y="257" T="12" H="10" /></S><D><DS Y="358" X="357" /></D><O><O C="11" Y="259" X="182" P="0" /><O C="11" Y="163" P="0" X="356" /></O><L>

<JP M2="0" M1="1" AXIS="1,0" /><JR M1="3" MV="Infinity,1.2" P1="182,259" /><JD M1="1" M2="3" /> // Makes ground 1 move right/left; See Mech #2

<JR M1="1" MV="Infinity,2" P1="356,163" M2="2" /> // Allows ground 2 to spin around point 356,163 while moving with ground 1

</L></Z></C>



9. Do Any Motion at the Press of a Button
Example 1
https://i.gyazo.com/b60ad1334f2b3357956c54440464b31a.gif
Example 2
https://i.gyazo.com/eee53566463456236dcf87d649a7e12d.gif
Code

a dit :

<C><P /><Z><S><S L="904" X="412" H="67" Y="405" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S P="1,999999,0.3,0.2,0,1,0,0" L="28" o="aaff" X="509" Y="360" T="12" H="26" /><S P="1,1,0.3,0.2,0,1,9999,0" L="40" o="304bb5" X="619" Y="235" T="12" H="36" /><S P="1,999999,0.3,0.2,0,0,0,0" L="42" o="181da3" X="485" Y="146" T="12" H="39" /><S L="28" o="c55252" X="429" H="26" Y="361" T="12" P="1,999999,0.3,0.2,0,1,0,0" /><S L="40" o="a52626" X="317" H="36" Y="262" T="12" P="1,1,0.3,0.2,0,1,9999,0" /><S L="42" o="670d0d" X="194" H="39" Y="129" T="12" P="1,999999,0.3,0.2,0,1,0,0" /><S L="10" o="4c0404" X="197" H="10" Y="299" T="12" P="1,999999,0.3,0.2,0,0,0,0" /></S><D><DS Y="359" X="470" /></D><O><O C="11" Y="195" P="0" X="486" /><O C="11" Y="248" P="0" X="198" /></O><L>

<JR M2="1" M1="0" /> // Links ground 0 to ground 1 (this stabilizes the blue button)

<JR M2="2" M1="1" /> // Links ground 1 to ground 2 (allows button to trigger motion)

<JR M2="3" M1="2" /> // Links ground 2 to ground 3 (Lets ground 2 copy ground 3's motion)

<JR M1="3" P1="486,195" MV="Infinity,3" /> // Makes ground 3 spin

<JR M2="4" M1="0" /> // Links ground 0 to ground 4 (this stabilizes the red button)

<JR M2="5" M1="4" /> // Links ground 4 to ground 5 (triggers movement)

<JR M2="5" M1="6" /> // Links ground 5 to ground 6 (Lets ground 5 copy ground 6's motion)

<JP M1="6" M2="0" AXIS="0,1" /><JR M1="7" P1="198,248" MV="Infinity,1.4" /><JD M2="7" M1="6" /> // Makes ground 6 move up and down

</L></Z></C>



10. Gliding While Swinging
Example
https://i.gyazo.com/5908a7b167bcf802a5cd96aeb86bcf8c.gif
Code
a dit :

<C><P /><Z><S><S L="799" H="23" X="403" Y="394" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S H="57" L="10" o="ffffff" X="212" c="3" Y="222" T="12" P="1,0,0.3,0.2,30,0,0,0" /><S L="10" o="324650" X="225" H="10" Y="194" T="13" m="" P="1,100000,0.3,0.2,0,1,0,0" /><S L="10" o="e0e0e" X="59" H="10" Y="230" T="13" P="1,999999,0.3,0.2,0,0,0,0" /><S L="10" o="e0e0e" X="-32" H="10" Y="192" T="12" P="1,999999,0.3,0.2,0,0,0,0" /></S><D><DS Y="369" X="204" /></D><O><O C="11" Y="230" P="0" X="75" /><O C="11" Y="193" X="110" P="0" /></O><L>

<JR M1="4" MV="Infinity, 0.6" P1="110,193" /><JD M2="2" M1="4" /><JP M1="0" M2="2" AXIS="1,0" /> // Makes ground 2 move right/left; see Mech #2

<JR M1="3" M2="2" MV="Infinity, 1.6" P1="75,230" /> // Makes ground 3 spin while following ground 2

<JD M2="1" M1="3" /> // Links ground 1 and 3 with set distance

<JR M1="1" M2="2" /> // Allows ground 1 to swing while moving along with Ground 2

</L></Z></C>


11. Gliding While Moving Up and Down
Example
https://i.imgur.com/QBfWGAn.gif
Code

a dit :

<C><P /><Z><S><S L="1093" X="494" H="117" Y="443" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S H="67" L="24" o="ffffff" X="785" c="3" Y="318" T="12" P="1,10000,5,0,0,1,0,0" /><S H="29" L="28" o="324650" X="553" c="4" Y="263" T="12" P="1,10000,0.3,0,0,1,," /><S H="10" L="10" o="324650" X="644" c="4" Y="111" T="13" P="1,100000,0,0,0,0,," /><S H="10" L="10" o="324650" X="329" c="4" Y="262" T="13" P="1,999999,0.3,0.2,0,0,," /></S><D><DS Y="264" X="777" /></D><O><O C="11" Y="78" P="0" X="643" /><O C="11" Y="259" X="188" P="0" /></O><L>

<JP M1="2" AXIS="1,0" /> // Only allows ground 2 to move on X-axis

<JR M1="4" P1="188,259" MV="Infinity,0.5" /> // Makes ground 4 spin

<JD M1="2" M2="4" /> // Keeps ground 2 moving with ground 4

<JP M1="1" M2="2" AXIS="0,1" /> // Links ground 1 to ground 2 while allowing ground 1 to move on Y-Axis

<JR M1="2" M2="3" P1="643,78" MV="Infinity,2" /> // Makes Ground 3 spin while moving with Ground 2

<JD M1="1" M2="3" /> // Keeps set distance between ground 1+3 so that ground 1 moves up/down

</L></Z></C>



That's all the mech I've prepared for now, I hope this was able to help some people! I may add more in the future if there's another cool trick worth sharing. If you have any questions, don't hesitate to comment or message me.

Dernière modification le 1528332540000
Kimsterjay
« Consul »
1515910200000
    • Kimsterjay#0000
    • Profil
    • Derniers messages
    • Tribu
#2
  0
This is very nice *-*
Ilikefairies
« Censeur »
1515927300000
    • Ilikefairies#0000
    • Profil
    • Derniers messages
    • Tribu
#3
  0
wow this is awesome!!!
Virtini
« Consul »
1515943860000
    • Virtini#0000
    • Profil
    • Derniers messages
    • Tribu
#4
  2
Pin it, please.
Cool thread.
Mquk
« Consul »
1519754400000
    • Mquk#0095
    • Profil
    • Derniers messages
    • Tribu
#5
  0
Nice tutorial thanks
Dsquared2
« Citoyen »
1519810500000
    • Dsquared2#5535
    • Profil
    • Derniers messages
    • Tribu
#6
  0
Great stuff, thank you!
Keepit
« Censeur »
1519889280000
    • Keepit#1041
    • Profil
    • Derniers messages
    • Tribu
#7
  0
Nice mechanisms °o°
Sherrwagn a dit :
he only permitted joints to be made through manually editing the XML code

Do you know this editor?, joints are very easy to make here:
TFMapCanvas - Create Joints Easier

Dernière modification le 1519899360000
Sugarnote
« Citoyen »
1527440400000
    • Sugarnote#0000
    • Profil
    • Derniers messages
    • Tribu
#8
  0
Thank you
Miminou1
« Citoyen »
1563910740000
    • Miminou1#0000
    • Profil
    • Derniers messages
    • Tribu
#9
  0
Wow ! thx
Cilacapenjoy
« Citoyen »
1572538560000
    • Cilacapenjoy#0000
    • Profil
    • Derniers messages
    • Tribu
#10
  0
nice thread, even i never do mechanism on my maps xD
Thegbc
« Censeur »
1589756340000
    • Thegbc#0095
    • Profil
    • Derniers messages
    • Tribu
#11
  0
I'm kinda late, but congrats Sherr, awesome tutorial!
Sherr a dit :
[...]you can just directly copy the entire quotes (no need to remove dark comments).[...]

Just as a quick note: you can load the XMLs on the map editor just fine, but if you don't remove those dark comments, the game won't recognize them as a valid syntax and you won't be able to export your map.
Wiannix
« Citoyen »
1662180600000
    • Wiannix#7716
    • Profil
    • Derniers messages
    • Tribu
#12
  0
OMFG, this is insane . . .
Arte
« Censeur »
1662840720000
    • Arte#9908
    • Profil
    • Derniers messages
    • Tribu
#13
  0
Good topic! congrats, thanks for the help.
Laiba
« Sénateur »
1673150160000
    • Laiba#5965
    • Profil
    • Derniers messages
#14
  1
Good topic thanks for help have a nice day
  • Forums
  • /
  • Transformice
  • /
  • Éditeur de cartes
  • /
  • [Tips and Tricks] List of Useful Joint Mechanisms
© Atelier801 2018

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

Version 1.27