Imagine you are designing some UI for your game, and you have a lives counter, with a particle system for effect. You want the number of remaining lives to dictate the particles emission rate, so you add some code like:
Now, the more lives you have, the more particles there is. But now you decide that a Y=X relationship isnt right, so you...
Graphing functions (Node editor for maths)
Code (CSharp):
- myParticleSystem.emissionRate = lives;
![[IMG]](http://i1361.photobucket.com/albums/r680/hpjohn/Grapher1_zpsa092a0f9.gif~original)
Now, the more lives you have, the more particles there is. But now you decide that a Y=X relationship isnt right, so you...
Graphing functions (Node editor for maths)