Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: zhevas on November 08, 2016, 08:15:12 AM

Title: Add up value to Playmaker Variable[SOLVED]
Post by: zhevas on November 08, 2016, 08:15:12 AM
Hi guys,

I have a very simple question but don't know how to solve it

I have a Get Axis component pointing to the Mouse ScrollWheel, so When I hit play and scroll the wheel I get values from -0.4 to 0.4.

Then I have a Set Audio Pitch Component, which sets whatever value I have in Get Axis to that Audio Pitch

The thing is, I would like that scroll values to be whatever they are +1, so the default scroll wheel is 1 and not 0 and I always get some sound.

(https://s4.postimg.org/5jwb0prnx/FOTO.png)
Helps in advance!

Title: Re: Add up value to Playmaker Variable
Post by: 4ppleseed on November 08, 2016, 08:24:41 AM
I think you want sample curve:
https://hutonggames.fogbugz.com/default.asp?W241 (https://hutonggames.fogbugz.com/default.asp?W241)
Title: Re: Add up value to Playmaker Variable
Post by: zhevas on November 08, 2016, 08:26:52 AM
THANKS A LOT! SOLVED!!!