Page 1 of 1

Creating circle Effect

Posted: Sun Jan 01, 2023 4:36 am
by dragon slayer
This is a circle moving effect for anything you like to use it on.
    for ( var i = 0; i < 100; i++ )
    {
        // Circle Effect around the item used.
        var radius = 50; // Radius of the circle
        var xOffset = 100; // X coordinate offset
        var yOffset = 100; // Y coordinate offset
        var x = iUsed.x + RandomNumber( - xOffset, radius ); // Calculate the x coordinate
        var y = iUsed.y + RandomNumber( - yOffset, radius ); // Calculate the y coordinate

        DoMovingEffect( iUsed, x, y, iUsed.z, 0x36E4, 0x02, 0x00, false, 0x1EC );
    }