Jump to content

Photo

A script that makes a freeform combo move in circles around Link...


  • Please log in to reply
3 replies to this topic

#1 idontknow8

idontknow8

    Senior

  • Members

Posted 26 July 2016 - 11:32 PM

And to be able to change the radius and how fast it moves.  Negative numbers should move the FFC counterclockwise (if possible)  I want to basically make an "ice barrier item script" that runs another, "Ice Barrier FFC Script."  The latter creates several ice blocks that spin around Link and when a projectile hits them, it gets reflected (kinda like the mirror shield)



#2 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

Posted 27 July 2016 - 12:10 AM

Give me a few days. JudasRising requested orbiting platforms, so this will share code with those.

#3 Saffith

Saffith

    IPv7 user

  • ZC Developers

Posted 27 July 2016 - 11:52 AM

ffc script OrbitLink
{
    void run(int radius, float step)
    {
        int angle=0;
        
        while(true)
        {
            this->X=Link->X+radius*Cos(angle);
            this->Y=Link->Y+radius*Sin(angle);
            angle=(angle+step)%360;
            Waitframe();
        }
    }
}
radius is in pixels, step is degrees per frame.

#4 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

Posted 27 July 2016 - 10:05 PM

I'm pretty sure he wants something like the cane of byrna, where it's drawing lweapons, or something, to make a barrier of orbits; not just one orbiting point. Unless he only wanted some way to make it orbit, and do all the rest on his own. Working on the Metroid code now, and finishing up request backlogs, so I'll check this later and see if he needs more.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users