Page 1 of 1
Multiball Scripting Question
Posted: 30 May 2012 18:13
by jvl1982
Quick question, I am relatively new to lemur, and after reading through the manual I was unable to immediately figure out how to solve/script this problem:
I would like to design a multiball where the default state of the ball is at the bottom left hand corner, so whenever I let go off the ball it will immediately return to that state (thus turning the effect off).
Thanks for the help ahead of time!
Re: Multiball Scripting Question
Posted: 02 Jun 2012 10:14
by bxsj
Attached is an example. Hope that helps.
BxSj
Re: Multiball Scripting Question
Posted: 12 Jun 2012 22:21
by jvl1982
thanks a ton! i'll try it out later tonight.
for future reference for anyone else looking how to do this, i found this thread over at the old jazzmutant forum, the link is below
"The simplest way is to use the MultiSlider, activate its Physic and sets its height to 0.
Now if you want to use a Fader, it's also pretty easy to do with a simple script (you need to use v2.0 for that).
1. Create a script local to the fader, call it "action" for instance.
2. Set its execution mode to "On Expression", triggered by z (type z in the adjacent field) when value goes from positive to zero (the arrow going down).
3. Type in x=0; in the panel below (don't forget the semi-colon)
That can also work with the MultiBall since it's got a z parameter (z=1 when you touch a ball), in that case you can type in two lines:
x=0;
y=0;
that way the ball gets back to the bottom-left corner."
http://forum.jazzmutant.com/viewtopic.php?p=13814
Re: Multiball Scripting Question
Posted: 13 Jun 2012 17:04
by bxsj
Beware, the z variable of the Multiball object behaves differently than the z variable of a Fader object. Check out the manual chapter 12.9.
Hope that helps,
BxSj