BAM Ball Trail

Paolo

No Bam no Play
Chat Moderator
Site Supporters
Joined
Mar 16, 2013
Messages
1,337
Solutions
3
Reaction score
609
Points
131
Favorite Pinball Machine
Batman(Data East)
Ok, Ball Trail, what is it????
Is a function that Rav, created a long time ago, on Gopinball it is now really difficult to find the appropriate section.
This function creates a luminous tail on the ball, which can be adjusted both in intensity and in color, originally this function could only activate in the Bam menu,and could only be used with the "new renderer" active see the photo,please

bt1.jpg bt2.jpg

But then I asked Rav, if it was possible to insert the code directly into the script, and Rav did, and also made it work without the "new renderer" active

'ball trail
Dim BallTrailsOnOff,BallTrailsMode
Sub FuturePinball_KeyPressed(ByVal KeyCode)

'ball trail
If KeyCode = GetKeyCode(Special2Key) then
BallTrailsOnOff = BallTrailsOnOff + 1
If BallTrailsOnOff > 2 then BallTrailsOnOff = 1
If BallTrailsOnOff = 1 Then BallTrailsMode=true: BallTrailsSistem()
If BallTrailsOnOff = 2 Then BallTrailsMode=false: BallTrailsSistem()
End if
Sub ResetForNewGame()
Dim i

'ball trail
BallTrailsSistem()
'ball trail
sub BallTrailsSistem()
PlaySound "collide"
if BallTrailsMode=false then
xBAM.Trails.Level = 1.3 ' tail intensity
xBAM.Trails.Color 192,192,192 ' color adjustment Red, Green, Blue
xBAM.Trails.Enabled = true
exit sub
end if
if BallTrailsMode=true then
xBAM.Trails.Enabled = false
exit sub
end if
End sub

With the special2 button you can deactivate or activate the ball trail, I hope it is very clear

In this demo
, you can see the intensity at 1.3 and the neutral colon 192, but you can change the color and intensity, as you like.


View attachment ball trail.mp4
 

Attachments

  • Ball Trail.fpt
    236 KB · Views: 69
Last edited:
Forum activity
Help Users
You can interact with the ChatGPT Bot in any Chat Room and there is a dedicated room. The command is /ai followed by a space and then your ? or inquiry.
ie: /ai What is a EM Pinball Machine?
  • No one is chatting at the moment.
      Chat Bot Mibs Chat Bot Mibs: AnushDCosta is our newest member. Welcome!
      Back
      Top