TerryRed wrote:
So the only thing I see in Jaws for example, is the shadow is still visible when the ball is in the barrel kicker.
I imagine I can use your new commands for radius,etc to change that up when its in the kicker and back to normal when out of the kicker.... but that could get tricky in MB situations.
I will fix it.
Gimli wrote:
Is it possible to add ball rolling sounds (like what smoke did) as a
Standard BAM feature too ?
Maybe, but not soon.
Gimli wrote:
The color on the custom ball does not seem right:
...
One table uses the old method and the other uses the new.
When ball hits slingshots in the new table the colors are black for the tennis ball and the volleyball ?
Nope, colors are correct. Error is in wrong textures applied to ball.
Here is fixed BAM.dll
https://www.ravarcade.pl/beta/BAM.dll... and about things in script:
Pleses use xBAM.Ball or fpBallId ONLY in something_hit() subroutines, not in FuturePinball_KeyPressed() or in CreateNewBall()
In CreateNewBall you have this:
Code:
xBAM.Ball.Name = xBAM.Ball.Name + 1
xBAM.Ball.UpdateBall 192, 192, 192, "Beach_452", "Beach_334", "Beach_269"'xBAM.Ball.Opacity = 0
CreateCustomBall PlungerKicker
That 2 lines xBAM.Ball may change look of any existing ball on table, but they will not change look of new ball created on PlungerKicker.
If you want to change look of ball in FuturePinball_KeyPress(), please do it this way:
Code:
Sub FuturePinball_KeyPressed(ByVal KeyCode)
Dim ball
Set ball = xBAM.BallCloseTo(0,0)
If ball.exist Then
if keycode = 46 then ball.UpdateBall 192, 192, 192, "Beach_452", "Beach_334", "Beach_269"
If keycode = 47 then ball.UpdateBall 255, 255, 255, "Volley_452", "Volley_334", "Volley_269"
If keycode = 48 then ball.UpdateBall 222, 253, 130, "Tennis_452", "Tennis_334", "Tennis_269"
End If
So:
1. Find ball on table with xBAM.BallCloseTo
2. Check if ball exist
3. Change ball look (ball variable is THAT ball)
On "CustonBall(1).fpt" you have this:
Code:
Dim Beachball, TennisBall, VolleyBall
BeachBall = xBAM.BallManager.DefineCustomBall(192, 192, 192, "Beach_452", "Beach_334", "Beach_269")
TennisBall = xBAM.BallManager.DefineCustomBall( 222, 253, 130, "Tennis_452", "Tennis_334", "Tennis_269")
VolleyBall = xBAM.BallManager.DefineCustomBall( 255, 255, 255, "Volley_452", "Volley_334", "Volley_269")
You don't need to remove this code. Lets say you keeped it as it is.
Now, in LeftSlingshotRubber_Hit(), you can use BallTransformations.UpdateBall like you do on CustonBall(1).fpt
... or you can write same rules like this:
Code:
Sub LeftSlingshotRubber_Hit()
If xBAM.Ball.Name = BeachBall Then
xBAM.Ball.Name = TennisBall
ElseIf xBAM.Ball.Name = TennisBall Then
xBAM.Ball.Name = VolleyBall
ElseIf xBAM.Ball.Name = VolleyBall Then
xBAM.Ball.Name = BeachBall
End If