[Tutorial]Ground appearance/disappearance with a button |
Cpzeuz « Citoyen » 1401660000000
| 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
| 0 | ||
:O! Very helpful! :3 |
Toyratz « Citoyen » 1402994160000
| 0 | ||
:O omg very helpul thx you thx you second post :3 |
Bloomthedoll « Citoyen » 1403066340000
| 0 | ||
ooooo i understood all of this somehow lmao it's really helpful, thanks! e// how - Dernière modification le 1468475100000 |
Jaedee « Citoyen » 1405490700000
| 0 | ||
Toyratz a dit : third post you mean* and THIS is helpful |
Toyratz « Citoyen » 1405602240000
| 0 | ||
jaedee a dit : Anyway is helpful |
Luciolamb « Citoyen » 1468025520000
| 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
| 0 | ||
Eh, too complicated. Mind if you make it neater? |