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:
    DrazeScythe has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Torntabittz has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    brotherboard has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    GARRY040 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    BL2K has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Chilldog has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    rodneyfitz has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    ace19120 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Tomasaco has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Greek_Jedi has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Beermano has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    02browns has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    nitram1864 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    aeponce has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    JEAN LUC has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    lorenzom has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    maxangelo19 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Dragonslapper has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    royaljet has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Tyfox has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Goldtopboy has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    slick267 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    dabreeze has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Spike has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Tofa has left the room.
      Chat Bot Mibs Chat Bot Mibs: Tofa has left the room.
      Back
      Top