GoPinball.com
http://gopinball.com/forum/

Plunger animation
http://gopinball.com/forum/viewtopic.php?f=84&t=11677
Page 1 of 1

Author:  djlunchbox [ Wed Jul 10, 2019 6:42 pm ]
Post subject:  Plunger animation

So I've noticed on some tables when you launch the ball, sometimes the plunger animation is real smooth. Just hold enter for like a second and the plunger pulls back fast. However on other tables the animation goes very slow and you gotta hold down enter for a few seconds till the plunger animation finally pulls all the way back. Is this how they're supposed to be? or is there something in the script I can change?

Author:  francisco666 [ Wed Jul 10, 2019 7:29 pm ]
Post subject:  Re: Plunger animation

There is no easy way to change the speed of how the plunger are pulled back, you can add some script lines and a timer to regulate the Percentage of pull.

A way to achive that via script id the next:

Search for:

' The Player is Pulling back the Plunger
If (KeyCode = GetKeyCode(PlungerKey)) Then
plunger.pull
End If


and change for

' The Player is Pulling back the Plunger
If (KeyCode = GetKeyCode(PlungerKey)) Then
plungertime.set true,10 'The number here can be change, higer value slower pull
End If



And add at the end of the scrip

dim percentagepull
sub plungertime_expired
percentagepull=percentagepull+1 'Higher value here make faster pull
Plunger.Pull(percentagepull)
end sub


Finaly search for:

If (KeyCode = GetKeyCode(PlungerKey)) Then
Plunger.LetGo
PlaySound "PlungerRelease"
End If


Add there the blue line
If (KeyCode = GetKeyCode(PlungerKey)) Then
plungertime.set false,10
Plunger.LetGo
PlaySound "PlungerRelease"
End If

Author:  GeorgeH [ Wed Jul 10, 2019 11:20 pm ]
Post subject:  Re: Plunger animation

The plunger tends to be a little slow on my version of "Phantom of the Opera" but the action is quite smooth:

http://www.pinsimdb.org/pinball/table-2 ... a_ultimate

I am not sure if you like it or not. The slower action allows you more time to identify when you release the ball so you get the skill shot. If you like it, you can search the script for "Plunger Mod" and you can identify what you need to add to any table that has a normal plunger. The coding won't work on tables like Medieval Madness which uses an autoplunger.

The method I used is a little different from Francisco's. It requires you add a timer to the playfield.

George

Author:  francisco666 [ Thu Jul 11, 2019 9:02 pm ]
Post subject:  Re: Plunger animation

GeorgeH have a much better solution

Author:  GeorgeH [ Fri Jul 12, 2019 2:00 am ]
Post subject:  Re: Plunger animation

Thanks Francisco but I think Gimli got it from some other table when we were working on CFTBL. I decided I liked it and figured out how to add it to other tables that have the right type of plunger.

George

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/