I was wondering if someone could make an aquamentus that breathes fire.
Edit: I also need moving platforms that are 16x16 combos that carry link around the screen. I'm using changers by the way. :googly:
I was wondering if someone could make an aquamentus that breathes fire.
Edit: I also need moving platforms that are 16x16 combos that carry link around the screen. I'm using changers by the way. :googly:
-Archangel-
Keeping the ZC Developers busy with heavy beta testing skills and experimentation is what I do best. May ZC be bug free!
You should seriously check advmath.zh out if you use ZC.
Um, subject line and topic divergance?
Tale of the Cave - a web comic - Updates Monday, Wednesday, Friday
ZC Tutorials - Tutorials and Script Library - Updated July 30, 2008
ZeldaGuard - Corruption in my save files? It's more likely than you think!
I do script requests!
Fixed... Smack to the face.
-Archangel-
Keeping the ZC Developers busy with heavy beta testing skills and experimentation is what I do best. May ZC be bug free!
You should seriously check advmath.zh out if you use ZC.
Code:ffc script Platform{ void run(){ int counterx; int countery; while(true){ if(Abs(Link->X-(this->X+8*(this->TileWidth-1))) <= 8*this->TileWidth && Abs(Link->Y-(this->Y+8*(this->TileHeight-1))) <= 8*this->TileHeight){ Link->X += move(this->Vx,counterx); Link->Y += move(this->Vy,countery); counterx = (counterx+1)%(100/factors100(Abs(this->Vx))); countery = (countery+1)%(100/factors100(Abs(this->Vy))); } Waitframe(); } } int move(int s,int c){ int as = Abs(s); int ret; if(as < 1){ if(c < as*100/factors100(as)) ret = 1; else ret = 0; }else if(as < 2){ if(c < (as-1)*100/factors100(as-1)) ret = 2; else ret = 1; } if(s < 0) ret = -ret; return ret; } int factors100(int s){ for(int i=50;i>0;i--) if((s*100)%i == 0) return i; } }
How do you set this script up using your pit script?
Check out my Main-project: The Legend of Zelda: Mystical Seed of Courage
Move the 'Falling' boolean from the pit script outside of the script, and put a line inside the if in the while loop in this script that says 'Falling = false;'.
Ah , very simple.
Thanks =)
Check out my Main-project: The Legend of Zelda: Mystical Seed of Courage
Yeah, I mean it's not perfect but I'd say it's acceptable.
I'm quite proud of it though, took some thinking up.
There's a slight problem with the script. It only moves link if he's facing the same direction as the platforms path of movement. Is it possible to correct this?
-Archangel-
Keeping the ZC Developers busy with heavy beta testing skills and experimentation is what I do best. May ZC be bug free!
You should seriously check advmath.zh out if you use ZC.
There is nothing related to direction in that code at all.
Are you possibly walking against the direction of the platform?
Surprisingly enough that might cause some problems.
There are currently 1 users browsing this thread. (0 members and 1 guests)