ravarcade
Pinball Wizard
- Joined
- Feb 8, 2020
- Messages
- 101
- Reaction score
- 232
- Points
- 49
- Favorite Pinball Machine
- AFM
Inside 3 demo tables.
- few bugs fixed.
- you can create many models on table with animation (but at some point cpu speed will be limit). Previously with 10 or more Indy model there ware artifacts.
- new script command to make animation simpler.
Code sample from ijtezt4:
Animation "U" is run, "R" is jump, "T" is stop run.
Line ij.Animation(20).ImportFinalPose() will store change for position and rotation of model after animation 20 ("U") is finished.
So, every time animation "U" is played model will move befer next animation will be played.
When you press S key, whole animation will be replayed.
If you press D key, run animation will be played once.
Line ij.Reset() will stop playing current animation.
This is simplified version how to animations with custom models.
- few bugs fixed.
- you can create many models on table with animation (but at some point cpu speed will be limit). Previously with 10 or more Indy model there ware artifacts.
- new script command to make animation simpler.
Code sample from ijtezt4:
Code:
Dim ij
Set ij = xBAM.CreateModel("IndyFinal2")
ij.Position.X = 300
ij.Position.Y = 100
ij.Height = 80
ij.Animation(20).ImportFinalPose() ' U
ij.Animation(17).ImportFinalPose() ' R
ij.Anim("UURUT")
Sub FuturePinball_KeyPressed(ByVal KeyCode)
If KeyCode = 31 Then ' On Key S
ij.Position.Y = 100
ij.Reset()
ij.Anim("UURUT")
End If
If KeyCode = 32 Then ' On Key D
ij.Anim("U")
End If
....
Line ij.Animation(20).ImportFinalPose() will store change for position and rotation of model after animation 20 ("U") is finished.
So, every time animation "U" is played model will move befer next animation will be played.
When you press S key, whole animation will be replayed.
If you press D key, run animation will be played once.
Line ij.Reset() will stop playing current animation.
This is simplified version how to animations with custom models.