Jump to content

Geyser particle effect

Recommended Posts

I tried to make a geyser particle effect, but I'm not very good with math, numbers, physics, angles, or nature.

Any suggestions? This is my code so far

g_Map.log("Gush the geysers");
let clGeyser = g_Map.createTileClass();
let num = Math.floor(diskArea(scaleByMapSize(3, 5)));
let geyserGroup = new SimpleGroup([new SimpleObject("actor|particle/geyser.xml", num, num, 0, 7)], false, clGeyser);
	stayClasses(clWater, 0),


<?xml version="1.0" encoding="utf-8"?>

    <blend mode="over"/>

    <constant name="emissionrate" value="200.0"/>
    <uniform name="lifetime" min="1.0" max="1.3"/>

    <constant name="position.y" value="0.0"/>

    <uniform name="angle" min="-3.14" max="3.14"/>

    <uniform name="velocity.x" min="-0.3" max="0.3"/>
    <uniform name="velocity.y" min="2.0" max="2.5"/>
    <uniform name="velocity.z" min="160" max="200"/>

    <uniform name="velocity.angle" min="-0.775" max="0.795"/>

    <uniform name="velocity.angle" min="-2.0" max="2.0"/>

    <uniform name="size" min="0.5" max="1.5"/>
    <force y="-0.3"/>

and the screenshot shows my current results.


Edited by andy5995
Link to comment
Share on other sites

I'm not a 100% sure, but comparing it to fireworks.xml, which I guess should look close to what you want to achieve, it looks like veloxity.y is actual the vertical direction while x & z are the horizontal directions.

So I would suggest trying a similar/ the same small (possibly negative) value for x & z and a higher (positive) value for y.

nice hills btw :)

  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...