[HELP]Particle grow by dragging mouse

Could some one give me some help on a grow function I’m working on. I’m trying to make it possible to increase the size of a fire by moving the X axis of the mouse.

This is what i have so far http://puu.sh/e8SRf/3b24d4aeb8.jpg and it works but bugs out my scene if i move into negative numbers too fast. Here is a video of what happened 2015 01 06 1040 26 - YouTube .

Yes, it fixed that problem. But it did create another, Whenever i move back to the right after a quick swipe left it breaks.

You could try a VInterp right before the “Set Scale” node. With “Get Scale” as current and the resulting vector from your current function as target. Play around with the speed.

It will lag a little behind if you do it really fast but it should fix this issue.

Try printing both variables and look if anything weird happens there.

Because it shouldn’t be possible to break with proper variables but it might get some weird once because of some random reason :wink:

http://puu.sh/e95v1/2efc6e68c8.png

These are the prints i got back, Maybe the change is still too fast for it to handle? It only prints 4 ticks of changes to the vector.

Oh yes, i got it working now. Thanks alot for your help!

It’s always the same isn’t it?

Try reducing the speed a little so it drags a bit behind if you do it really fast.