×

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] Como fazer interruptores
[Tutorial] Como fazer interruptores
Billysmille
« Citoyen »
1488319500000
    • Billysmille#9956
    • Profil
    • Derniers messages
#1
  2
Exemplo
Billysmille - @7053005
http://i.imgur.com/E2dESoK.gif


1. Adicione a plataforma dinâmica.

    Utilizando junta prismática (JP), defina a direção do eixo (AXIS).

    <JP M1="Z1" M2="Z2" AXIS="X,Y" />

    Z1 : referente à qualquer piso estático;
    Z2 : referente à plataforma dinâmica;
    X,Y : direção do eixo;


    Exemplo
    <C><P /><Z><S><S L="120" X="400" H="40" Y="380" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S P="1,0,0.3,0.2,0,1,0,0" L="80" o="324650" X="550" Y="370" T="12" H="20" /></S><D><DS Y="345" X="400" /></D><O /><L>
    <JP M1="0" M2="1" AXIS="0,1" />
    </L></Z></C>


2. Crie um botão (On)

    Propriedades
    http://i.imgur.com/z9V3gqr.png

    Estabeleça a ligação:

    <JP M1="Z1" M2="Z2" AXIS="0,1" LIM1="0" LIM2="0.03" />

    Z1 : referente à qualquer piso estático;
    Z2 : referente ao botão;


    Exemplo
    <C><P /><Z><S><S L="120" H="40" X="400" Y="380" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="80" o="324650" H="20" X="550" Y="370" T="12" P="1,0,0.3,0.2,0,1,0,0" /><S L="10" o="324650" X="360" H="10" Y="360" T="13" P="1,999999,0.3,0.2,0,1,9999,0" /></S><D><DS Y="345" X="400" /></D><O /><L>
    <JP M1="0" M2="1" AXIS="0,1" />
    <JP M1="0" M2="2" AXIS="0,1" LIM1="0" LIM2="0.03" />
    </L></Z></C>


3. Adicione um piso círculo.

    Propriedades
    http://i.imgur.com/h8xzLXZ.png

    Conecte-o ao botão criado utilizando JR.

    <JR M1="Z1" M2="Z2" />

    Z1 : referente ao botão;
    Z2 : referente ao piso círculo;


    Exemplo
    <C><P /><Z><S><S L="120" H="40" X="400" Y="380" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="80" o="324650" H="20" X="550" Y="370" T="12" P="1,0,0.3,0.2,0,1,0,0" /><S L="10" o="324650" X="360" H="10" Y="360" T="13" P="1,999999,0.3,0.2,0,1,9999,0" /><S P="1,100000,9999,0,0,0,9999,9999" L="10" o="324650" H="10" c="2" Y="-40" T="13" X="360" /></S><D><DS Y="345" X="400" /></D><O /><L>
    <JP M1="0" M2="1" AXIS="0,1" />
    <JP M1="0" M2="2" AXIS="0,1" LIM1="0" LIM2="0.03" />
    <JR M1="2" M2="3" />
    </L></Z></C>


4. Crie um piso retângulo logo abaixo.

    http://i.imgur.com/djSzCGi.png
    Propriedades
    http://i.imgur.com/EyCwm3K.png

    Adicione as juntas:

    <JP M1="Z1" M2="Z2" AXIS="1,0" MV="Infinity,1" />
    <JR M1="Z1" M2="Z2" />


    Z1 : referente à qualquer piso estático;
    Z2 : referente ao piso retângulo;


    Exemplo
    <C><P /><Z><S><S L="120" X="400" H="40" Y="380" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S P="1,0,0.3,0.2,0,1,0,0" L="80" o="324650" X="550" Y="370" T="12" H="20" /><S P="1,999999,0.3,0.2,0,1,9999,0" L="10" o="324650" H="10" Y="360" T="13" X="360" /><S X="360" L="10" o="324650" H="10" c="2" Y="-40" T="13" P="1,100000,9999,0,0,0,9999,9999" /><S P="1,1e24,1e6,0,0,1,0,0" L="10" o="324650" X="360" c="2" Y="-25" T="12" H="10" /></S><D><DS Y="345" X="400" /></D><O /><L>
    <JP M1="0" M2="1" AXIS="0,1" />
    <JP M1="0" M2="2" AXIS="0,1" LIM1="0" LIM2="0.03" />
    <JR M1="2" M2="3" />
    <JP M1="0" M2="4" AXIS="1,0" MV="Infinity,1" />
    <JR M1="0" M2="4" />

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


5. Repita as etapas anteriores para criar um novo botão (Off).

    Altere o sentido da velocidade em MV.

    Exemplo
    <C><P /><Z><S><S L="120" X="400" H="40" Y="380" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S P="1,0,0.3,0.2,0,1,0,0" L="80" o="324650" H="20" Y="370" T="12" X="550" /><S P="1,999999,0.3,0.2,0,1,9999,0" L="10" o="324650" X="360" Y="360" T="13" H="10" /><S X="360" L="10" o="324650" H="10" c="2" Y="-40" T="13" P="1,100000,9999,0,0,0,9999,9999" /><S P="1,1e24,1e6,0,0,1,0,0" L="10" o="324650" X="360" c="2" Y="-25" T="12" H="10" /><S P="1,999999,0.3,0.2,0,1,9999,0" L="10" o="324650" H="10" Y="360" T="13" X="440" /><S X="440" L="10" o="324650" H="10" c="2" Y="-40" T="13" P="1,100000,9999,0,0,0,9999,9999" /><S P="1,1e24,1e6,0,0,1,0,0" L="10" o="324650" X="440" c="2" Y="-25" T="12" H="10" /></S><D><DS Y="345" X="400" /></D><O /><L>
    <JP M1="0" M2="1" AXIS="0,1" />
    <JP M1="0" M2="2" AXIS="0,1" LIM1="0" LIM2="0.03" />
    <JR M1="2" M2="3" />
    <JP M1="0" M2="4" AXIS="1,0" MV="Infinity,1" />
    <JR M1="0" M2="4" />
    <JP M1="0" M2="5" AXIS="0,1" LIM1="0" LIM2="0.03" />
    <JR M1="5" M2="6" />
    <JP M1="0" M2="7" AXIS="1,0" MV="Infinity,-1" />
    <JR M1="0" M2="7" />

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


6. Adicione um piso.

    Propriedades
    http://i.imgur.com/lG5B0KN.png

    Estabeleça uma ligação JR.

    <JR M1="Z1" M2="Z2" LIM1="-3.14" LIM2="0" />

    Z1 : referente à qualquer piso estático;
    Z2 : referente ao piso;


    Utilizando JP, conecte-o à cada piso círculo criado na etapa 3.

    <JP M1="Z1" M2="Z3" />
    <JP M1="Z2" M2="Z3" />


    Z1 : referente ao piso círculo 1;
    Z2 : referente ao piso círculo 2;
    Z3 : referente ao piso;


    Por fim, utilizando JD, conecte-o à plataforma dinâmica.

    <JD M1="Z1" M2="Z2" P1="X1,Y1" P2="X2,Y2" />

    Z1 : referente à plataforma dinâmica;
    Z2 : referente ao piso;
    X1 : posição X do piso + (posição X final da plataforma - posição X inicial da plataforna) / 2;
    Y1 : posição Y do piso + (posição Y final da plataforma - posição Y inicial da plataforna) / 2;
    X2 : posição X do piso - (posição X final da plataforma - posição X inicial da plataforna) / 2;
    Y2 : posição Y do piso - (posição Y final da plataforma - posição Y inicial da plataforna) / 2;


    Exemplo
    <C><P /><Z><S><S L="120" H="40" X="400" Y="380" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="80" o="324650" H="20" X="550" Y="370" T="12" P="1,0,0.3,0.2,0,1,0,0" /><S L="10" o="324650" X="360" H="10" Y="360" T="13" P="1,999999,0.3,0.2,0,1,9999,0" /><S P="1,100000,9999,0,0,0,9999,9999" L="10" o="324650" H="10" c="2" Y="-40" T="13" X="360" /><S H="10" L="10" o="324650" X="360" c="2" Y="-25" T="12" P="1,1e24,1e6,0,0,1,0,0" /><S L="10" o="324650" H="10" X="440" Y="360" T="13" P="1,999999,0.3,0.2,0,1,9999,0" /><S P="1,100000,9999,0,0,0,9999,9999" L="10" o="324650" H="10" c="2" Y="-40" T="13" X="440" /><S H="10" L="10" o="324650" X="440" c="2" Y="-25" T="12" P="1,1e24,1e6,0,0,1,0,0" /><S X="400" L="10" o="324650" H="10" c="4" Y="-40" T="13" P="1,100000,0,0,0,0,0,9999" /></S><D><DS Y="345" X="400" /></D><O /><L>
    <JP M1="0" M2="1" AXIS="0,1" />
    <JP M1="0" M2="2" AXIS="0,1" LIM1="0" LIM2="0.03" />
    <JR M1="2" M2="3" />
    <JP M1="0" M2="4" AXIS="1,0" MV="Infinity,1" />
    <JR M1="0" M2="4" />
    <JP M1="0" M2="5" AXIS="0,1" LIM1="0" LIM2="0.03" />
    <JR M1="5" M2="6" />
    <JP M1="0" M2="7" AXIS="1,0" MV="Infinity,-1" />
    <JR M1="0" M2="7" />
    <JR M1="0" M2="8" LIM1="-3.14" LIM2="0" />
    <JP M1="3" M2="8" />
    <JP M1="6" M2="8" />
    <JD M1="1" M2="8" P1="400,-80" P2="400,0" />

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


Dernière modification le 1631411040000
Thegbc
« Censeur »
1488320700000
    • Thegbc#0095
    • Profil
    • Derniers messages
    • Tribu
#2
  0
Bom tópico ^^
Jacobzinho
« Citoyen »
1488322200000
    • Jacobzinho#0000
    • Profil
    • Derniers messages
    • Tribu
#3
  0
arrasouuuuuuuuuu
Reppam
« Censeur »
1488324480000
    • Reppam#0000
    • Profil
    • Derniers messages
    • Tribu
#4
  0
Estou amando seus tutoriais!
Billysmille
« Citoyen »
1488325500000
    • Billysmille#9956
    • Profil
    • Derniers messages
#5
  0
Ainda não está pronto.
Por engano, cliquei em "Validar".

Este é um tutorial um pouco mais trabalhoso, e vai levar algum tempo até estar terminado.
Peço desculpas.

Dernière modification le 1488325560000
Billysmille
« Citoyen »
1488330540000
    • Billysmille#9956
    • Profil
    • Derniers messages
#7
  0
Mrorko a dit :
Muito bom o tutorial, mas acho que seria bem legal se você adicionasse imagens ilustrativas.

Estava tendo problemas ao tentar hospedar imagens no imgur. Optei por terminar todo o texto e só então adicionar as imagens.
Como eu disse, foi um engano ter enviado este tópico incompleto.

Dernière modification le 1488330600000
Tdft
« Censeur »
1488331020000
    • Tdft#0000
    • Profil
    • Derniers messages
    • Tribu
#9
  0
agora que começou afazer tutorial nao para mais né
ótimo tópicooo
Montesquieu
« Censeur »
1488331260000
    • Montesquieu#1567
    • Profil
    • Derniers messages
#10
  0
adorei o tutorial billy
qui homao da porra
Joaojbq
« Citoyen »
1488335820000
    • Joaojbq#0000
    • Profil
    • Derniers messages
    • Tribu
#11
  0
p.r.0.z.a.o

vai ate pro meus fav**
Awesync
« Censeur »
1503357120000
    • Awesync#8255
    • Profil
    • Derniers messages
    • Tribu
#13
  0
Daora.
Milenalinds
« Citoyen »
1522627140000
    • Milenalinds#0000
    • Profil
    • Derniers messages
    • Tribu
#14
  0
Como faz para o piso 1 (plataforma) ir para a esquerda e direita?

Quero quatro botões no mesmo mapa e que cada um faça o piso ir para um lado. Se possível alguém adiciona mais dois botões nesse XML com dois novos botões que fazem o piso ir para direita e esquerda sem excluir os já existentes que fazem subir e descer.

<C><P /><Z><S><S L="120" H="40" X="400" Y="380" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="80" o="324650" H="20" X="550" Y="370" T="12" P="1,0,0.3,0.2,0,1,0,0" /><S L="10" o="324650" X="360" H="10" Y="360" T="13" P="1,999999,0.3,0.2,0,1,9999,0" /><S P="1,100000,9999,0,0,0,9999,9999" L="10" o="324650" H="10" c="2" Y="-40" T="13" X="360" /><S H="10" L="10" o="324650" X="360" c="2" Y="-25" T="12" P="1,1e24,1e6,0,0,1,0,0" /><S L="10" o="324650" H="10" X="440" Y="360" T="13" P="1,999999,0.3,0.2,0,1,9999,0" /><S P="1,100000,9999,0,0,0,9999,9999" L="10" o="324650" H="10" c="2" Y="-40" T="13" X="440" /><S H="10" L="10" o="324650" X="440" c="2" Y="-25" T="12" P="1,1e24,1e6,0,0,1,0,0" /><S X="400" L="10" o="324650" H="10" c="4" Y="-40" T="13" P="1,100000,0,0,0,0,0,9999" /></S><D><DS Y="345" X="400" /></D><O /><L>
<JP M1="0" M2="1" AXIS="0,1" />
<JP M1="0" M2="2" AXIS="0,1" LIM1="0" LIM2="0.03" />
<JR M1="2" M2="3" />
<JP M1="0" M2="4" AXIS="1,0" MV="Infinity,1" />
<JR M1="0" M2="4" />
<JP M1="0" M2="5" AXIS="0,1" LIM1="0" LIM2="0.03" />
<JR M1="5" M2="6" />
<JP M1="0" M2="7" AXIS="1,0" MV="Infinity,-1" />
<JR M1="0" M2="7" />
<JR M1="0" M2="8" LIM1="-3.14" LIM2="0" />
<JP M1="3" M2="8" />
<JP M1="6" M2="8" />
<JD M1="1" M2="8" P1="400,-80" P2="400,0" />

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

Se der com o mesmo formato de joints usado pelo criador do tópico.

OBG

Dernière modification le 1522627440000
Rataraiii
« Citoyen »
1522882080000
    • Rataraiii#0000
    • Profil
    • Derniers messages
#15
  0
Perai, velocidade da luz?
Eistter
« Censeur »
1523351520000
    • Eistter#0000
    • Profil
    • Derniers messages
#16
  0
O mais legal de tudo é que ele só move enquanto o rato está encostado no botão, caso contrário, ele para. Perfeito.
Sugestão: Aumentem a fricção pra 20 e removam a restituição dos botões liga e desliga.

Dernière modification le 1523351640000
Cocotania
1525645740000
    • Cocotania#0000
    • Profil
    • Derniers messages
    • Tribu
#17
[Modéré par Tini]
  • Forums
  • /
  • Transformice
  • /
  • Éditeur de cartes
  • /
  • [Tutorial] Como fazer interruptores
© Atelier801 2018

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

Version 1.27