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

spawnFxWithDefinition appears to be ignoring color?

Hi! Had a question about spawnFxWithDefinition. For some reason, it seems to be ignoring the color information I pass to it, and is making everything white. I think I saw an earlier forum post where someone reported a similar issue, but I didn't see a response for it. Just as an example test, I copied this code from the API documentation page ( <a href="https://help.roll20.net/hc/en-us/articles/360037772833-API-Function-Documentation#API:FunctionDocumentation-spawnFxWithDefinition" rel="nofollow">https://help.roll20.net/hc/en-us/articles/360037772833-API-Function-Documentation#API:FunctionDocumentation-spawnFxWithDefinition</a> ), since it should represent a known good way to produce greenish particles on the page. (I know the effect types were updated some few months ago, so particle appearance and movement will differ from the current 'bubbling' effect; really concerned about that at the moment) function test() { &nbsp;&nbsp;&nbsp;&nbsp;spawnFxWithDefinition(700, 1400, { &nbsp;&nbsp;&nbsp;&nbsp;maxParticles: 200, &nbsp;&nbsp;&nbsp;&nbsp;size: 15, &nbsp;&nbsp;&nbsp;&nbsp;sizeRandom: 3, &nbsp;&nbsp;&nbsp;&nbsp;lifeSpan: 20, &nbsp;&nbsp;&nbsp;&nbsp;lifeSpanRandom: 5, &nbsp;&nbsp;&nbsp;&nbsp;speed: 7, &nbsp;&nbsp;&nbsp;&nbsp;speedRandom: 2, &nbsp;&nbsp;&nbsp;&nbsp;gravity: { x: 0.01, y: 0.65 }, &nbsp;&nbsp;&nbsp;&nbsp;angle: 270, &nbsp;&nbsp;&nbsp;&nbsp;angleRandom: 35, &nbsp;&nbsp;&nbsp;&nbsp;emissionRate: 1, &nbsp;&nbsp;&nbsp;&nbsp;startColour: [0, 35, 10, 1], &nbsp;&nbsp;&nbsp;&nbsp;startColourRandom: [0, 10, 10, 0.25], &nbsp;&nbsp;&nbsp;&nbsp;endColour: [0, 75, 30, 0], &nbsp;&nbsp;&nbsp;&nbsp;endColourRandom: [0, 20, 20, 0] &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}); } Instead, when I call this function, the particles are all white. Is there something else I'm missing? If not, is this a known issue?
1752931708
Pat
Pro
API Scripter
There are some new properties that are not well documented yet, and part of that is why the older format elements don't show up well in Jumpgate's special effects engine.&nbsp; I did some tweaking with a laser blast that in the old system was a laser but in the new system is just a dark smudge, this is the result:&nbsp; { "angle": -1, "angleRandom": 0, "duration": 25, "emissionRate": 600, "emitterSize": 0.5, "endColour": [220, 0, 0, 0], "endColourRandom": [60, 60, 60, 0], "gravity": {"x":0, "y":0}, "lifeSpan": 100, "lifeSpanRandom": 3, "maxParticles": 400, "rulerType": "line", "size": 10, "sizeRandom": 0, "speed": 30, "speedRandom": 0.5, "startColour": [220, 0, 0, 1], "startColourRandom": [62, 0, 0, 0.25] }
didn't know about the new properties, but some googling did lead me to find this page, just as a future reference: <a href="https://help.roll20.net/hc/en-us/articles/360037258714-Effects-FX-Tool#01J6CZHGCDZQHXHN5990951JCB" rel="nofollow">https://help.roll20.net/hc/en-us/articles/360037258714-Effects-FX-Tool#01J6CZHGCDZQHXHN5990951JCB</a> Tried pasting in your fx definition, but alas, particles are still all white instead of the reddish color specified