Editor Objects

Timer


Timer

Timers can be used to add a pause after a Hit event.

Timer Button

 

First Lets Create a Timer:If you don't have a table already opened File / New to open a new Table.

Click on the Timer button Move Cursor towards the table you are building.Iit should turn into a Timer cursor, click this where you would like your Timer placed. and you get a Timer.

Note: Placing Timers on the side will help you to find them in an easier way. They can also be placed on Backdrop to be use for attractmode or other advanced display technics.


Now that we have a Timer Created we can look at the Timer Option Properties.

Click on options in the ToolBar and select the Timer by clicking on it

Doing this will show us the Timer properties.

Timer- Name for type of object you have selected.

Name - Timer1 The name of the Timer, you can change this to whatever you want. The name is used to address the object through the script.

Timer Enabled -needs additional script. Default is checked

Timer Interval - Default is 100, dela befor procedure is starting.

UserValue - This Variable is userdefined and can be use for wathever you want. I use it often as event flag in the script.

Note: Timers can be place anywhere, on Table or Backdrop.


Timer Script

Using demo6timer.zip

Timers are pretty simple to get working. In the above example you can open it up & check the Timers out, in action. The script for the Timers is at the bottom of the script in this demo.

Note: In the Timer Options, Enabled is unchecked, it is Enabled by dropping both targets.

In Sub CheckTarget Timer1 is enabled

Sub CheckTarget()
If Target.Isdropped = True And Target1.IsDropped = True Then 'checks to see if both targets are dropped
Timer1.Enabled = True ' if they are both dropped timer will start
End IF
End Sub
'**************************Target Stuff Ends Here

In Sub Timer1_Timer the Timer & Targets are reset, Timer is no longer enabled until both targets are knocked down again.


Sub Timer1_Timer() 'in timer options look at the interval, its 2500 2 1/2 seconds
Timer1.Enabled = False 'after 2 1/2 seconds Timer1 stops and finishes the Sub
PlaySound "targetup"
Target.IsDropped = False 'pops the target back up
Target1.Isdropped = False 'pops the target back up
End Sub

 


Editor - Learn the Basics of the Visual Pinball Editor. Menu Bar Functions - Importing Images & Sounds.

Table Options - Ball Color - This explains Table options, importing a ball image & Changing ball color.

Right Click Options - Explains All Right Clicking Options for All Objects.

Building a simple Sling Shot - Learn how to make a slingshot from scratch using a basic wall.

Decals - Explains Decal Options, & shows how to import an image for a decal. Pinball DemoDecal

Plungers & Kickers - How to use a Plungers & Kickers & a Simple Pinball Demo.

Walls & Targets - Explains Walls & Targets. Pinball Demo1

Lights Collections - Learn how to use lights in a collection using collection manager. Pinball DemoLights

Lights & Bumpers - Learning Light & Bumper States & Lights, Bumpers Option Bar.Pinball Demo2

Gate & Sound Events - Explains Gate options & how to use sound events in keyup & keydown.Pinball Demo2

TextBox & Making Score count - Shows you how to use TextBoxes & AddScore & Dim Score. Pinball Demo3

Ramps - Explains Ramp Options & shows you how to build a simple Ramp. Pinball Demo4

Spinners - Explains Spinner Options & shows script to make a spinner work. Pinball Demo4

Triggers - Explains Trigger Options & shows script to make a Trigger work. Pinball Demo5

Timers - Explains Timer Options & shows script to make a Timer work. Pinball Demo6

Flippers - Explains Flipper Options & shows script to make a Flipper work. Pinball Demo7

EMReel - Shows you how to use EMReels. Pinball Demo8

Go Back to Main Page