Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Gravity Property Locking FX To Upper Left

I was playing with the Custom FX. When I test the following, it locks to the upper left corner of the page (vs underneath the point where I am clicking my mouse). { "angle": 0, "duration": -1, "angleRandom": 360, "emissionRate": 2, "endColour": [0, 0, 0, 1], "endColourRandom": [10, 10, 5, 0], "gravity": [0.01, 0.01], "lifeSpan": 60, "lifeSpanRandom": 0, "maxParticles": 200, "sharpness": 55, "sharpnessRandom": 40, "size": 260, "sizeRandom": 0, "speed": 0, "speedRandom": 0, "startColour": [10, 10, 50, 0], "startColourRandom": [10, 10, 10, 0] } Thoughts?
1471646499
Lithl
Pro
Sheet Author
API Scripter
The gravity property expects an object, not an array. Use { "x": 0.01, "y": 0.01 }  instead.
Brian said: The gravity property expects an object, not an array. Use { "x": 0.01, "y": 0.01 } &nbsp;instead. Well... that did something, but not the right thing. FYI that I am using the "orb" effect documented here:&nbsp; <a href="https://wiki.roll20.net/FX_Library" rel="nofollow">https://wiki.roll20.net/FX_Library</a> That page documents it as an array and it&nbsp;tests correctly on the test page here:&nbsp; <a href="https://wiki.roll20.net/fxplayground/" rel="nofollow">https://wiki.roll20.net/fxplayground/</a> However, when creating a customer FX in my actual campaign and clicking the Test FX button, that is when things go south.