Author Message

amilmand

00
Posts: 259

Location: ---
Occupation:
Age:
V$:
#137755   2018-02-22 18:57          
Bigg Boss93:
the latter
The original idea of adnan54 was to make the pitch of the turbo whine dependent on the cars rpm and for that he tried to call addItem on the SfxTable repeatedly in an animate block or the like but this crashes the game unsurprisingly.
This is a way to modify the additional parameters of a sound added to an SfxTable much more frequently (every frame if needs be) this way one can implement the original idea. The test just uses a variable changing every (I think) 10ms to overwrite the pitch of every sound in the given SfxTable as a demonstration.