Jump to content



Tutorial info Visit support topic

  • Added on: Apr 25 2013 02:22 AM
  • Date Updated: Apr 25 2013 02:25 AM
  • Views: 4673
 


* * * * *
1 Ratings

Utilizing Primitives for Flipper decals

How to add decals to the tops of flippers.

Posted by koadic on Apr 25 2013 02:22 AM
Flippers Decals
I have been doing a little experimenting on ways to use primitives and think I have come across a decent method for applying flipper 'decals' to the tops of the flippers. I have attached a proof of concept table using the flipper toppers used in the Haunted House table with flippers of the same dimensions.

Using primitives for this purpose simplifies scripting immensely as all you need is a timer to update position and a single line inside the timer sub to set the position. Upon replacing all the flipper toppers in the Haunted House table, I got a framerate increase from 530 to 660 (almost a 25% increase) when using build 362+

Sample code to handle updating image:
Sub Timer1_Timer

LFPrim.RotAndTra2=LeftFlipper.CurrentAngle

RFPrim.RotAndTra2=RightFlipper.CurrentAngle

End Sub

And that's it, nothing else needed except for the primitive and the image you want to use sized and proportioned correctly. To use an image for primitives, you need to make it a little different than a regular image... First, I created a square image with the center rotation point of the flipper placed at the center, then I needed to double the area of the image keeping the original in the upper left. See below.
Posted Image

And here is the table to play around with...



Anyway, I just wanted to share what I have come up with and welcome all comments :)

Attached Files