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.
Confirmed. Although I haven't done any extensive testing, I ran into the same problem when writing my own version of this script.
I think it has something to do with Link's NES style movement code. It resists moving him in certain ways via script. But, when I enabled Diagonal Movement, suddenly it worked properly.
(I then ran into an issue with a platform moving at a fractional speed, but Link's position not storing decimals! I think Link's position should include the fraction, even if it's truncated for the purpose of determining his position)
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!
There are currently 1 users browsing this thread. (0 members and 1 guests)