Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   flag thing (https://forums.graalonline.com/forums/showthread.php?t=44314)

Dach 04-17-2003 06:04 AM

flag thing
 
1 Attachment(s)
I'm not really posting this to show support for the war, I just think it looks cool. I've started on the German and UK flags, but they don't look that great yet. Anyhow, enjoy!
(press num keys to change wind)

Dach 04-17-2003 06:07 AM

1 Attachment(s)
screenies

PrinceDark 04-17-2003 06:12 AM

Very nice npc you got there.

Dach 04-17-2003 07:17 AM

Quote:

Originally posted by Kaimetsu
Pretty cool, but:

Sleep = bad.
Why use string arrays? A normal array with some sort of code would be infinitely better. This kind of script shouldn't use any kind of strings at all.
Your method for determining shadow is a little iffy. It looks okay, but it could look better.
Too many trigonometric calls! It would be better to use some simple vector stuff - both faster and more realistic.

hehe, yeah, I know, I was just lazy today and didn't feel like making it too realistic. Heck, I just happened upon that method of making it wave, I was going to let it stay as a simple sin wave.

Oh, I get it, you're a little upset cause I didn't finish the British flag before posting this. Hehe... yep, I definately need some sleep

adam 04-17-2003 08:16 AM

Impressive, I definitely approve of the results.

Pokilty 04-17-2003 03:39 PM

That's a pretty cool flag there i like it a lot

osrs 04-17-2003 05:04 PM

Very nice..:)

mhermher 04-18-2003 01:05 AM

NICE LEVEL DUDE!
:cool:

Jeff 04-18-2003 02:02 AM

A bit inefficient, like Kai said.

And a German flag should be easy, like France etc. Simple stripes :)


UK will be a bit trickier because of the red diagonal stripes needing to be in the white ones and still look good.

Dach 04-18-2003 05:57 AM

1 Attachment(s)
I ditched the polygons and found a bunch of flag images online, so now the script is more efficient (save the mass of trig crap, hehe). Well, I really just wanted to see if I could make an image like a flag out of pure gscript (idea came before polygons, when it was more of a challenge), but this is more entertaining, nay?

adam 04-18-2003 06:33 AM

1 Attachment(s)
I made something similar in 70 minutes. almost on the dot.

Dach 04-18-2003 05:47 PM

Quote:

Originally posted by adam
I made something similar in 70 minutes. almost on the dot.
cept that is basically a sine wave, in that the perceptive length of the flag does not change, it merely moves up and down. Still looks cool though, I like to watch the shaded part of the flag move across the screen, it's so mesmerizing...
*drools on keyboard* KZZZZAAAPP!!!!

adam 04-18-2003 06:12 PM

Quote:

Originally posted by Dach


cept that is basically a sine wave, in that the perceptive length of the flag does not change, it merely moves up and down. Still looks cool though, I like to watch the shaded part of the flag move across the screen, it's so mesmerizing...
*drools on keyboard* KZZZZAAAPP!!!!

Yeah that's why I said similar ;)

Yours is better at mimicing how it is, mine just looks sharper for what it does.

It can get pretty darn funky if you mess with the 2 values that control most of it.

this.power and this.wind I believe

this.power being how much it moves up and down

and this.wind being how much it increments the angle being used. which is rather vital it totally changes how it looks when moved like .0001

If you increment the angle pi but a little off it will be like there are 2 transparent flags waving in the wind.

Projectshifter 04-22-2003 07:30 AM

Omi, I LOVE the original one! It's LEETO! Shadows and 3d stuff are not my cup of tea, but I love it! I mean, the whole American Flag makes it like 100x better XP. From me, I give it a 9.9994 out of a 10. You lost a slight bit for the movement style.
I must say, the 2nd one is a bit different. I like it but I don't. The American flag gets you an automatic 9, so you get an A for effort, but a 9.4 overall (out of 10).
---Shifter

Jeff 04-23-2003 04:59 PM

Quote:

Originally posted by Projectshifter
Omi, I LOVE the original one! It's LEETO! Shadows and 3d stuff are not my cup of tea, but I love it! I mean, the whole American Flag makes it like 100x better XP. From me, I give it a 9.9994 out of a 10. You lost a slight bit for the movement style.
I must say, the 2nd one is a bit different. I like it but I don't. The American flag gets you an automatic 9, so you get an A for effort, but a 9.4 overall (out of 10).
---Shifter


You give people high special credit for including an American flag in their stuff? :rolleyes: That makes no sense. Admittedly the script does deserve high marks, but you should grade it the same as if it were a German flag, or a French flag, or any other flag.


All times are GMT +2. The time now is 09:57 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.