Jump to content

Photo

Ice Combos


  • Please log in to reply
6 replies to this topic

#1 Disdyakis Triacontahedron

Disdyakis Triacontahedron

    Newbie

  • Members

Posted 08 August 2010 - 01:16 AM

May I request some script?

I am requesting an ice combo that makes Link slide as far as possible in the direction he is traveling. The motion can only be stopped by Link crashing into an object or Link leaving the ice. Such a combo would be useful in puzzles.

#2 Disdyakis Triacontahedron

Disdyakis Triacontahedron

    Newbie

  • Members

Posted 17 August 2010 - 02:51 AM

UPDATE/BUMP: I will be using the standard "slow walk" ice as a graphic.

#3 Disdyakis Triacontahedron

Disdyakis Triacontahedron

    Newbie

  • Members

Posted 21 August 2010 - 12:40 AM

EDIT: I would like pushed blocks on the surface of ice combos to slide as far as possible in the given direction, as well. Is that possible?

#4 eNJuR

eNJuR

    Junior

  • Members
  • Real Name:Nathan
  • Location:Sol system

Posted 21 August 2010 - 02:22 AM

http://armageddongam...-Ice-Pushblocks
I found that on agn, but its really outdated....

#5 Joe123

Joe123

    Retired

  • Members

Posted 21 August 2010 - 02:41 AM

Gotta love scripts written in build 311!

CODE
const int CF_ICE    = 98; //CF_SCRIPT1

global script Active
{
    void run()
    {
        while(true)
        {
            Ice();
            
            Waitframe();
        }
    }    
}


bool onIce = false;
void Ice()
{
    if(!ComboFI(Link->X + 8, Link->Y + 8, CF_ICE))
    {
        if(onIce)
        {
            onIce = false;
        }
        return;
    }
    
    if(!onIce)
    {
        onIce = true;
    }

    if(Link->Dir == DIR_UP)            Link->Y -= 2;
    else if(Link->Dir == DIR_DOWN)     Link->Y += 2;
    else if(Link->Dir == DIR_LEFT)     Link->X -= 2;
    else if(Link->Dir == DIR_RIGHT)    Link->X += 2;
    NoAction();
}


First draft should allow sliding across ice that has no solid combos in the middle of it, and is surrounded by walkable combos.
If it works, I'll start to add the more complicated parts.

#6 Master Maniac

Master Maniac

    Earth, Wind, Fire, and Water.

  • Members
  • Real Name:kris

Posted 26 August 2010 - 03:52 PM

This script would go perfectly with my ice wand, once I finish it icon_razz.gif

I'd like to see the end result. Also, for the "Drifting", you could use a counter and decrement it by .1 per frame. Probably not clear in the least bit but... I'm not sure how to explain it. Let me get my thinker going and I'll try and explain better XD


#7 Joe123

Joe123

    Retired

  • Members

Posted 27 August 2010 - 05:48 AM

Oh yeah, drifting ice would be a lot less fun to do.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users