Results 1 to 4 of 4

Thread: Multi-ball code for Future Pinball.

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2009
    Posts
    3

    Multi-ball code for Future Pinball.

    I am trying to figure out how to code a multi-ball session in future pinball.
    The multi-ball should begin when the players score reaches a set value.
    This is the code I have written for the sequence but it does not work.

    If nvScore(CurrentPlayer) = nvScore(CurrentPlayer) + Points + 10000 Then
    bMultiBallMode = True
    BallsOnPlayfield = 3
    BallsInLock = 3
    Kicker1.CreateBall
    Kicker1.SolenoidPulse
    End If


    Can any one help?
    TY.

  2. #2
    PowerPoster Jenner's Avatar
    Join Date
    Jan 2008
    Location
    Mentor, OH
    Posts
    3,712

    Re: Multi-ball code for Future Pinball.

    What doesn't work about it? Is it not making the new balls? Is it not registering the new balls hitting targets?
    My CodeBank Submissions: TETRIS using VB.NET2010 and XNA4.0, Strong Encryption Class, Hardware ID Information Class, Generic .NET Data Provider Class, Lambda Function Example, Lat/Long to UTM Conversion Class, Audio Class using BASS.DLL

    Remember to RATE the people who helped you and mark your forum RESOLVED when you're done!

    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. "
    - Albert Einstein

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2009
    Posts
    3

    Re: Multi-ball code for Future Pinball.

    It does not create the new balls.

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Multi-ball code for Future Pinball.

    Think about your If statement:
    If nvScore(CurrentPlayer) = nvScore(CurrentPlayer) + Points + 10000 Then
    As nvScore(CurrentPlayer) is on both sides of the = , the overall result can only be true if the Points variable is equal to -10000.

    It isn't clear what you actually want to check, but it might be this:
    Code:
    If nvScore(CurrentPlayer) = Points + 10000 Then

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width