Repeating keys - help wanted

Shockman

appropriate at this time
Joined
Oct 26, 2004
Messages
3,199
Solutions
5
Reaction score
121
Points
90
Favorite Pinball Machine
Star Trek
I tried a While/Wend in the key down sub. to aim in our Bowler, I will need it for starting spot as well.

It didn't work.

WTF? (What's The Function?)

Thanks if you can help, or if you would if you could.
 
I would help if I could. I wish I could help. I can't!

(Just trying to play with words in your language. :lol: Does it make sense :?:)
 
Perfect, though it may be more correct with just two lines;
I would help if I could. I wish I could, but I can't.

You could leave out the 'but I can't' too, because the first line implied that.

Thanks.
 
It's not needed, your English is fine, better than some Americans.
 
While/wend/do until/do while/ etc etc aren't very good choices IMO. Why not just use two timers. Enable a timer when the key is pressed, disable timer when key is released - this frees the program for other things between timer iterations like lamps and sounds. At each timer interval completion, update the graphic for the ball position. Of course you could just look at any of the bowler vpm tables on AJ's - they are mainly VP code. Taurus, Top Dawg, Big Strike, etc etc.
 
Thanks, will do. I did not know there were any there.
 
Shockman, here is the code Patrick used to move the catcher in our Kicker and Catcher game.

If keycode = LeftFlipperKey and nojou>1 Then
nojou=nojou-1
Wall11.isdropped=false
Wall12.isdropped=false
Wall13.isdropped=false
Wall15.isdropped=false
Wall17.isdropped=false
Wall18.isdropped=false
Wall28.isdropped=false

if nojou=1 then Wall11.isdropped=true
if nojou=2 then Wall12.isdropped=true
if nojou=3 then Wall13.isdropped=true
if nojou=4 then Wall15.isdropped=true
if nojou=5 then Wall17.isdropped=true
if nojou=6 then Wall18.isdropped=true
if nojou=7 then Wall28.isdropped=true

End If
If keycode = RightFlipperKey and nojou<7Then

nojou=nojou+1
Wall11.isdropped=false
Wall12.isdropped=false
Wall13.isdropped=false
Wall15.isdropped=false
Wall17.isdropped=false
Wall18.isdropped=false
Wall28.isdropped=false

if nojou=1 then Wall11.isdropped=true
if nojou=2 then Wall12.isdropped=true
if nojou=3 then Wall13.isdropped=true
if nojou=4 then Wall15.isdropped=true
if nojou=5 then Wall17.isdropped=true
if nojou=6 then Wall18.isdropped=true
if nojou=7 then Wall28.isdropped=true
End If


If you'd like to check out the game and see if you can adapt the code, you're more than welcome. It's on this page, about half way down:

http://www.pinballnirvana.com/modul...p;query=tiltjlp&min=30&orderby=titleA

John
 
General chit-chat
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:
    docdoc has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Exnihilo_Mundus has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    angmarg52 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    tully619 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    smorndb has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Tech49 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Topsi Klaus has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Forsaken43 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    duduky72 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Gerge has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    nunolilo has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    DavidT2025 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Gary-7 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Thunderbird has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    alug has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    bluebird has left the room.
  • HZR @ HZR:
    It’s nice to go all see a place I can play actual machines!!!!
    Quote
  • Chat Bot Mibs Chat Bot Mibs:
    Sunrise74 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Rai has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    liebowa has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    gustave has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    hoovie108 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    creatine481 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    fabioaugusto4 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Dangerpin has left the room.
      Chat Bot Mibs Chat Bot Mibs: Dangerpin has left the room.
      Back
      Top