×

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
  • /
  • [Tutorial]Ground appearance/disappearance with a button
[Tutorial]Ground appearance/disappearance with a button
Cpzeuz
« Citoyen »
1401660000000
    • Cpzeuz#0000
    • Profil
    • Derniers messages
    • Tribu
#1
  2
Ground appearance/Disappearance with button

First thing first, look at this topic Topic-289896
We will use practically the same technic. But instead, we will replace anchors and gravity by JOINTS!
With our joints, we can make a ground appear EVERYWHERE on the map without using too much space.
This mecanism is used in 2 of my maps @5064244 and @5010382

All we need is 4 grounds in this order
0. Fixed ground
1. a button
2. the ground which will appear/disappear
3. the ground that will guide the ground 2.

Ground Caracteristics
*Grounds 1 and 3 will have their angle fixed (just to stabilise them but it's optional)
*Grounds 1 and 3 will be dynamic
*Grounds 1 and 3 will have a big mass (like 999999)
*The ground 2 will have a small mass (life 1) with it's angle fixed and a lot of linear dumping (like 9999)

We will have this
<C>
<P />
<Z>
<S>
<S H="100" P="0,0,0.3,0.2,0,0,0,0" L="800" X="400" Y="430" T="0" />
<S H="50" P="1,999999,0.3,0.2,0,1,0,0" L="50" o="ff0000" X="100" Y="355" T="12" />
<S P="1,1,0.3,0.2,0,1,9999,0" L="50" o="ff00" H="50" X="340" Y="355" T="12" />
<S P="1,999999,0.3,0.2,0,1,0,0" L="50" o="ff" H="50" X="580" Y="355" T="12" />
</S>
<D />
<O />
</Z>
</C>

joints between grounds
In order

*We will have to fix the botton with a JR joint
<JR M1="0" M2="1" />
*Then, we will have to link up ground 1 and 2, then 2 and 3 with the same joint
<JR M1="1" M2="2" />
<JR M1="2" M2="3" />

We will have this
<C>
<P />
<Z>
<S>
<S H="100" P="0,0,0.3,0.2,0,0,0,0" L="800" X="400" Y="430" T="0" />
<S H="50" P="1,999999,0.3,0.2,0,1,0,0" L="50" o="ff0000" X="100" Y="355" T="12" />
<S P="1,1,0.3,0.2,0,1,9999,0" L="50" o="ff00" H="50" X="340" Y="355" T="12" />
<S P="1,999999,0.3,0.2,0,1,0,0" L="50" o="ff" H="50" X="580" Y="355" T="12" />
</S>
<D />
<O />
<L>
<JR M1="0" M2="1" />
<JR M1="1" M2="2" />
<JR M1="2" M2="3" />
</L>
</Z>
</C>


Gound 3 movement
The ground 2 will always follow the movement from the ground 3 whatever it is!

To make ground 2 appear/disappear
We will have to make ground 3 move far away
For that purpose, we will use a JP joint
Then we will put enough power and speed like MV="100000000,100" to a direction where we want (like AXIS="0,1" ou AXIS"1,0")
After that, to make it usable, we will put up a limit like 10. (the value will depend on where you want to send your ground 2)
<JP M1="0" M2="3" AXIS="1,0" MV="100000000,100" LIM2=10/>

<C>
<P />
<Z>
<S>
<S H="100" P="0,0,0.3,0.2,0,0,0,0" L="800" X="400" Y="430" T="0" />
<S H="50" P="1,999999,0.3,0.2,0,1,0,0" L="50" o="ff0000" X="100" Y="355" T="12" />
<S P="1,1,0.3,0.2,0,1,9999,0" L="50" o="ff00" H="50" X="340" Y="355" T="12" />
<S P="1,999999,0.3,0.2,0,1,0,0" L="50" o="ff" H="50" X="580" Y="355" T="12" />
</S>
<D />
<O />
<L>
<JR M1="0" M2="1" />
<JR M1="1" M2="2" />
<JR M1="2" M2="3" />
<JP M1="0" M2="3" AXIS="1,0" MV="100000000,100" LIM2="10"/>
</L>
</Z>
</C>


All you need is to touch the red ground now :P
----------------------------------------

Alternative movement
As I explained, we can do everything with the ground 3
like this
<C>
<P />
<Z>
<S>
<S H="100" P="0,0,0.3,0.2,0,0,0,0" L="800" X="400" Y="430" T="0" />
<S H="50" P="1,999999,0.3,0.2,0,1,0,0" L="50" o="ff0000" X="100" Y="355" T="12" />
<S P="1,1,0.3,0.2,0,1,9999,0" L="50" o="ff00" H="50" X="340" Y="355" T="12" />
<S P="1,999999,0.3,0.2,0,0,0,0" L="50" o="ff" H="50" X="580" Y="355" T="12" />
</S>
<D />
<O />
<L>
<JR M1="0" M2="1" />
<JR M1="1" M2="2" />
<JR M1="2" M2="3" />
<JR M1="0" M2="3" P1="580,200" MV="100000000,100"/>
</L>
</Z>
</C>
Crazysushi
« Citoyen »
1402945740000
    • Crazysushi#0000
    • Profil
    • Derniers messages
#2
  0
:O! Very helpful! :3
Toyratz
« Citoyen »
1402994160000
    • Toyratz#0000
    • Profil
    • Derniers messages
    • Tribu
#3
  0
:O omg very helpul thx you thx you

second post :3
Bloomthedoll
« Citoyen »
1403066340000
    • Bloomthedoll#0000
    • Profil
    • Derniers messages
#4
  0
ooooo i understood all of this somehow lmao
it's really helpful, thanks!

e// how -

Dernière modification le 1468475100000
Jaedee
« Citoyen »
1405490700000
    • Jaedee#0000
    • Profil
    • Derniers messages
    • Tribu
#5
  0
Toyratz a dit :
:O omg very helpul thx you thx you

second post :3

third post you mean* and THIS is helpful
Toyratz
« Citoyen »
1405602240000
    • Toyratz#0000
    • Profil
    • Derniers messages
    • Tribu
#6
  0
jaedee a dit :
Toyratz a dit :
:O omg very helpul thx you thx you

second post :3

third post you mean* and THIS is helpful

Anyway is helpful
Luciolamb
« Citoyen »
1468025520000
    • Luciolamb#6763
    • Profil
    • Derniers messages
    • Tribu
#7
  0
Amm... help me xD

<C><P F="3" /><Z><S><S L="800" H="31" X="400" Y="387" T="10" P="0,0,0.3,0,0,0,0,0" /><S L="38" o="ff0000" H="34" X="33" Y="354" T="12" P="1,999999,0.3,0.2,0,0,0,0" /><S L="16" o="0" H="122" X="259" Y="307" T="12" P="1,1,0.3,0.2,0,0,9999,0" /><S L="47" o="ffef00" H="43" X="404" Y="347" T="12" P="1,999999,0.3,0.2,0,0,0,0" /></S><D /><O /><L>
<JR M1="0" M2="1" />
<JR M1="1" M2="2" />
<JR M1="2" M2="3" />
<JR M1="0" M2="3" P1="580,200" MV="100000000,100"/>
</L></Z></C>
Desolate
« Citoyen »
1468467180000
    • Desolate#2007
    • Profil
    • Derniers messages
#8
  0
Eh, too complicated.
Mind if you make it neater?
  • Forums
  • /
  • Transformice
  • /
  • Éditeur de cartes
  • /
  • [Tutorial]Ground appearance/disappearance with a button
© Atelier801 2018

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

Version 1.27