Question on gates

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #166606
    makmak
    Participant
      @makmak

      Hi, I have a question on gates. You can choose from three variants the ball can travel through: left, right and 2-way. How to switch during a game? (like the two upper gates in AfM).

      Given a gate open from the right, the ball will be stopped coming from the left. I can set the gate to open, then its open from both directions. After the ball has traveled through, the wire stays open. And will never come back down, even if its set to be closed to one direction again!?

      Is there another command apart from „gate.open=“ or gate.collidable=“?

      Or can you close a 2-way gate to one direction?

      Thanks!

      #166609
      Tom
      Participant
        @armyaviation

        The gate shouldn’t stay open.  There are only two options, 1 way and 2 way.  If you want the one way facing the opposite direction rotate it 180 degrees.  It’s a simple wire mechanism so there should never need to be a call in the script, unless it’s more than a simple wire gate, which I haven’t seen.  The one way gate opens and then closes and won’t allow it back in the other way

        #166610
        makmak
        Participant
          @makmak

          So I need two gates on top of each other, a two-way and a one-way gate and set them, depending of the mode, alternatingly visible and collidable / not visible and not collidable?

          #166646
          Tom
          Participant
            @armyaviation

            When you build a table, build it just like they do at the factory.  If they put a one way gate, then you use a one way gate.  It will work fine.  Look at an 80’s table..  when you full plunge the ball it will travel up the inlane, go through the one way gate at the top right, most likely hit a bumper or another one way gate at the top left, then if enough force come back and hit the first one way gate, which will not let it go back down the inlane.  Use Kiss 79 as an example

            #166651
            cyberpez
            Participant
              @cyberpez

              Yeah, the gate as is should not stay open unless like in your example of AFM (or in the example of RaB I’m about to share) it doesn’t, it’s controlled via the rom with some mechanical magic.

               

              In RaB I did this in the Sol call back section:

               

              solCallback(14) =”TopGate”

               

              Then a sub to control it:

               

              Dim TopGateOpen

              Sub TopGate(Enabled)
              If Enabled Then
              Gate2.Collidable = false
              If TopGateOpen = 0 then PlaySoundAt”topgate_close”,Gate2
              TopGateOpen = 1
              Else
              Gate2.Collidable = true
              If TopGateOpen = 1 then PlaySoundAt”topgate_open”,Gate2
              TopGateOpen = 0
              End If
              End Sub

               

               

              But yeah, your right, collidable or not is the way to go.. with my example I broke it out so I could do other things when the rom tells it to open or close.  (play sounds)  but you could do different things to animate it also I suppose.

              #166848
              makmak
              Participant
                @makmak

                omg, just discovered you can set the gate to two-way by script…havent seen this in any doc: Gate.twoway=true/false…

                nevertheless, if set to two-way the wire is gone or not shown, no matter if rectangle or “w” wire. Why?

                #166859
                Thalamus
                Moderator
                  @thalamus

                  I don’t think you can expect anyone to give an answer to that, except the devs. I did a quick check of your claim for not being used before and I didn’t find any examples either. But, then again. You could just add a primitive instead. Only “problem” – you probably will need to animated it yourself now. :whistle:

                  #166860
                  makmak
                  Participant
                    @makmak

                    I dont know how to make primitives (yet). Anyway its strange, as there are animations of moving wires in both directions, if set to oneway only. Maybe the devs have forgotten to “show the animations” of the wires if gate is set two-way? I will play AfM the whole evening to see how the wires/gates are moving ;-)

                    #166865
                    32assassin
                    Participant
                      @32assassin

                      look at breakShot

                      the ball can travel in one direction at all times

                      and a solenoid call raises the gates to make a full orbit shot

                       

                      Sub SolRGate(Enabled)
                      If Enabled Then
                      RightGate.Open = 1
                      PlaySound SoundFX(“fx_Flipperup”,DOFContactors)
                      Else
                      RightGate.Open = 0
                      End If
                      End Sub

                       

                       

                      see a table you like help me find the resources so that I can finish it
                      https://www.dropbox.com/sh/7qtake9whi5ium2/AAB4K4W78oMVlqSxTzKtGHTHa?dl=0

                      see a table you like help me find the resources so that I can finish it
                      https://www.dropbox.com/sh/7qtake9whi5ium2/AAB4K4W78oMVlqSxTzKtGHTHa?dl=0

                      #166893
                      makmak
                      Participant
                        @makmak

                        Have a close look at how the wires move or not move and stay open on AfM- its unpredictable…or is it my sytem only?

                        #167192
                        makmak
                        Participant
                          @makmak

                          There seems to be a bug on the animation of the gates wires. When I set the gates to open, then the wires go up in a horizontal position, but wont come down again if set to open=false. Where to report bugs to the developers?

                        Viewing 11 posts - 1 through 11 (of 11 total)

                        Forums are currently locked.

                        ©2024 VPinBall.com

                        Log in with your credentials

                        Forgot your details?