- This topic has 10 replies, 5 voices, and was last updated 4 years, 6 months ago by makmak.
-
AuthorPosts
-
March 10, 2020 at 1:50 am #166606
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!
You need to login in order to like this post: click here
March 10, 2020 at 3:03 am #166609The 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
You need to login in order to like this post: click here
March 10, 2020 at 3:30 am #166610So 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?
You need to login in order to like this post: click here
March 10, 2020 at 9:18 am #166646When 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
You need to login in order to like this post: click here
March 10, 2020 at 9:25 am #166651Yeah, 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 SubBut 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.
You need to login in order to like this post: click here
March 10, 2020 at 12:43 pm #166848omg, 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?
You need to login in order to like this post: click here
March 10, 2020 at 1:31 pm #166859I 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.
You need to login in order to like this post: click here
March 10, 2020 at 1:46 pm #166860I 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
You need to login in order to like this post: click here
March 10, 2020 at 2:12 pm #166865look 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 Subsee a table you like help me find the resources so that I can finish it
https://www.dropbox.com/sh/7qtake9whi5ium2/AAB4K4W78oMVlqSxTzKtGHTHa?dl=0see a table you like help me find the resources so that I can finish it
https://www.dropbox.com/sh/7qtake9whi5ium2/AAB4K4W78oMVlqSxTzKtGHTHa?dl=0You need to login in order to like this post: click here
March 10, 2020 at 2:46 pm #166893Have a close look at how the wires move or not move and stay open on AfM- its unpredictable…or is it my sytem only?
You need to login in order to like this post: click here
March 13, 2020 at 3:08 am #167192There 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?
You need to login in order to like this post: click here
-
AuthorPosts
Forums are currently locked.