Pinball Nirvana Home Page

Go Back   Pinball Nirvana Forums > VP/VPM Help and Support > VP/VPM General Information and First Aid Station

VP/VPM General Information and First Aid Station Request Help about Visual Pinball or Visual PinMAME.

Reply
 
Thread Tools Display Modes
  #1  
Old 11-26-2004, 05:02 PM
tiltjlp's Avatar
tiltjlp tiltjlp is offline
Co-Founder Of PN
 

Join Date: Jun 2003
Location: Cheviot Ohio
Posts: 3,673
Credits: 136,751.64
USA US Ohio
My Mood:
Thanks: 44
Thanked 82 Times in 71 Posts
Rep Power: 46
tiltjlp will become famous soon enough
Default Need a special ball image

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 zifbob1@juno.com. You will receive credit when I release the table.

John
Attached Images
 
__________________
John

Reply With Quote
  #2  
Old 11-27-2004, 12:33 AM
tiltjlp's Avatar
tiltjlp tiltjlp is offline
Co-Founder Of PN
 

Join Date: Jun 2003
Location: Cheviot Ohio
Posts: 3,673
Credits: 136,751.64
USA US Ohio
My Mood:
Thanks: 44
Thanked 82 Times in 71 Posts
Rep Power: 46
tiltjlp will become famous soon enough
Default

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.CreateBallropKicker1.Kick 180,1
DropKicker2.CreateBallropKicker2.Kick 180,1
DropKicker3.CreateBallropKicker3.Kick 180,1
End If

Thanks . . . John
__________________
John

Reply With Quote
  #3  
Old 11-27-2004, 01:07 PM
TomB TomB is offline
Pinball Nudger
 

Join Date: Sep 2003
Posts: 10
Credits: 12,619.80
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
TomB is on a distinguished road
Default

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.
Attached Files
File Type: zip randomkicker_table.zip (3.1 KB, 125 views)
Reply With Quote
  #4  
Old 11-27-2004, 07:07 PM
tiltjlp's Avatar
tiltjlp tiltjlp is offline
Co-Founder Of PN
 

Join Date: Jun 2003
Location: Cheviot Ohio
Posts: 3,673
Credits: 136,751.64
USA US Ohio
My Mood:
Thanks: 44
Thanked 82 Times in 71 Posts
Rep Power: 46
tiltjlp will become famous soon enough
Default

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
__________________
John

Reply With Quote
  #5  
Old 11-27-2004, 09:23 PM
tiltjlp's Avatar
tiltjlp tiltjlp is offline
Co-Founder Of PN
 

Join Date: Jun 2003
Location: Cheviot Ohio
Posts: 3,673
Credits: 136,751.64
USA US Ohio
My Mood:
Thanks: 44
Thanked 82 Times in 71 Posts
Rep Power: 46
tiltjlp will become famous soon enough
Default

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
__________________
John

Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Spinning an image on the ball left or right? druadic Table Development Workshop 19 12-27-2010 01:05 PM
Skee Ball image! druadic Resources & Tutorials 4 11-14-2010 08:13 PM
help in exporting an image file morethansleeving VP/VPM General Information and First Aid Station 2 04-22-2010 10:40 PM
change ball image unclewilly Visual Pinball and Visual PinMAME Discussion 2 07-09-2009 03:49 PM
Webring Image Help JonPurpleHaze Site Announcements 27 01-06-2006 04:38 PM


All times are GMT -4. The time now is 08:12 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios