Need a special ball image

tiltjlp

PN co-founder
Joined
Jun 9, 2003
Messages
3,403
Reaction score
145
Points
65
Favorite Pinball Machine
Flying Trapeze 1934
Would someone be able to create a ball image for me from the attached antique US penny? I need it for my current project, a nifty Trade Stimulator from the 1940s. Thanks in advance. Send the end result to [email protected]. You will receive credit when I release the table.

John :oldman
 

Attachments

  • old_penny.jpg
    old_penny.jpg
    4.6 KB · Views: 645
Need a bit more coding help with the same game. I have three kickers which I want to have a ball created and kicked from at random. Is there a way to do that. Here is the code segment.

If keycode = 25 Then
DropKicker1.CreateBall:DropKicker1.Kick 180,1
DropKicker2.CreateBall:DropKicker2.Kick 180,1
DropKicker3.CreateBall:DropKicker3.Kick 180,1
End If

Thanks . . . John :oldman
 
You could enable the kickers timer to tick let's say once a second and in the timer routine you kick a ball out at random:

Code:
sub kicker1_timer
  kicker1.timerinterval = 1000
  if rnd < 0.25 then
    kicker1.CreateBall
    kicker1.kick 180,1 
  end if
end sub

The rnd function generates evenly distributed random values between 0 and 1. Testing against 0.25 means, the probability that a new ball is created is about 25% on each timer tick. You can experiment with the values on the attached table.
 

Attachments

  • randomkicker_table.zip
    3.1 KB · Views: 305
Thanks TomB, I would nver have figured out that I needed a timer to make this work. The example table is really appreciated, since it will help me understand the inner working of the whole thing.

John
 
Well TomB, I tried your code, and I'm probably doing something wrong, since a ball is kicked out of each of the three kickers. And I just realized I left out some important information. My table is a one ball Trade Stimulator. Sorry, but could you adapt your code for me. What I need is for the one and only ball to drop straight down from one of three kickers placed across the top of the table.

I'm using a single key press to launch the ball, and wonder if it is possible to check for a possible ball in another kicker at the bottom of the table, from the previous game, and if it's present, destroy it before creating and launching a new ball. If the ball doesn't land in a specific kicker, but in one of several other kickers, it is destroyed to end the game. Only a winning ball remains in the bottom kicker. losing balls are destroyed. Sorry for the confusion. And no, it will not work using one kicker and having the ball kicked out in random directions.

John
 
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: LoST57 is our newest member. Welcome!
      Back
      Top