Ball Image Scripting

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #109806
    Lizard
    Participant
      @lizard

      I have a global ball and decal image set in VPX with the overwrite ball image option. What i want to do on some tables is script a different ball and decal.

      The table i am trying on at the moment is 32assassins latest flipper football update to change to the soccer ball. I can manage to change the ball image

      with .BallImage = “ball” but can’t find any info on how to change the decal image by script. Had a look at the command reference text file but couldn’t

      find a solution. Can the ball decal be changed via the script?

      Cheers

      #109836
      cyberpez
      Participant
        @cyberpez

        Might be a different way to do it, but this is how I did it in Black Hole and it worked.  When I create the ball I assign it a name, then later you can assign an image and a decal to that ball.

        Set cBall1 = Kicker1.CreateSizedBallWithMass(BallRadius, BallMass)

        cBall1.Image = “Chrome_Ball_29”
        cBall1.FrontDecal = “BlackHole_Ball1”

        #109948
        32assassin
        Participant
          @32assassin

          uncle willy has multiple code examples on how to change the ball image  on his seawitch table.

          https://www.vpforums.org/index.php?app=downloads&showfile=3028

           

          when the ball is created and kicked out

          bsTrough.BallImage = “ballDark”

           

          ball image is changed by triggers

          ‘Ball image triggers

          Sub tdl_Hit():ActiveBall.Image = “ball”:End Sub

          Sub tld_Hit():ActiveBall.Image = “ballDark”:End Sub

           

           

          see a table you like help me find the resources so that I can finish it
          https://www.dropbox.com/sh/7qtake9whi5ium2/AAB4K4W78oMVlqSxTzKtGHTHa?dl=0

          see a table you like help me find the resources so that I can finish it
          https://www.dropbox.com/sh/7qtake9whi5ium2/AAB4K4W78oMVlqSxTzKtGHTHa?dl=0

          #109961
          Lizard
          Participant
            @lizard

            Thanks for the replies, i have got it working now using the trigger method thanks.

          Viewing 4 posts - 1 through 4 (of 4 total)

          Forums are currently locked.

          ©2024 VPinBall.com

          Log in with your credentials

          Forgot your details?