Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Rotation, the works of Giltwist. (https://forums.graalonline.com/forums/showthread.php?t=50064)

Mykel 01-01-2004 04:48 AM

Rotation, the works of Giltwist.
 
1 Attachment(s)
Script made by giltwist he showed me. I don't really understand how to edit it, or how it really works, but I imagine some of you will. So here you are.

tlf288 01-01-2004 05:16 AM

wow... i don't know how to edit either.

Python523 01-01-2004 05:56 AM

Quote:

Originally posted by tlf288
wow... i don't know how to edit either.
If you're referring to the one on the right, it's like 3rd/4th semester calculus :P

Mykel 01-01-2004 07:31 AM

*Taking Calculus next year.*
:D

tlf288 01-01-2004 08:19 AM

Quote:

Originally posted by Python523


If you're referring to the one on the right, it's like 3rd/4th semester calculus :P

heh. i don't even understand the trig stuff fully. then again, i don't understand most math past algebra (yet, god dangit, yet!).

adam 01-01-2004 10:11 AM

I like math, but I haven't been given such maths.

I could possibly re-create the trig version from my own work, but not the other.

Termina_Owner 01-01-2004 10:51 AM

Pretty interesting concept on rotation... Too bad it doesn't fill the pixels inbetween... Could be done by mading another piuxel inbetween by putting a 200% image of the pixel with 50% transparency... Would make it smoother.

Good work none-the-less... Haven't seen something like that in quite some time... If you look at it for a couple of seconds, it should come to mind how it was done... For some people. Anyhow... Neat stuff.

Thought 01-01-2004 11:05 AM

GScript is too slow for operations like these... :\

zokemon 01-01-2004 11:45 AM

very laggy but i suppose the only way to do img rotation at this point....we need a new command for img rotation :(

screen_name 01-01-2004 11:56 AM

Quote:

Originally posted by zokemon
very laggy but i suppose the only way to do img rotation at this point....we need a new command for img rotation :(
I believe, but don't quote me, that there will be one in version 3

osrs 01-01-2004 03:50 PM

Geez, the guy was very skilled with trigonometry & math, i just don't like his styling way. :P

MysticHaste 01-01-2004 06:18 PM

Very nice, I didn't check the scripts, but it looks like its just dividing the image up into pixels (would appear every second or 3rd from the gaps appearing in images)

And using trig to spin them from a point.

I couldn't see a difference in how they ran. (diff and trig)

But yeah, Very nice.

Mykel 01-02-2004 05:17 AM

1 Attachment(s)
What you can do with a little tweaking:

Made by Giltwist.

marcoR 01-02-2004 05:51 PM

These are funky:cool:

Dach 01-02-2004 07:31 PM

looks like trig identities (y'know, the ones used in diff-eq) but not like the ones I'm used to

Edit: oh right, that's how it does the shrink/grow stuff

Mykel 01-03-2004 08:00 AM

Yea, I was like: "What the hell could I use these in?"

Till he showed me the whirl-pool level.


:)

wonderboysp2p 01-05-2004 08:40 AM

i remember someone awhile back was trying to figure out how to do that exact whirlpool thing

ZeLpH_MyStiK 01-06-2004 01:27 AM

Wow, very smart! Taking a image and dividing it into pixels. Then using trig to rotate the pixels. =) Good job!!!

adam 01-06-2004 05:17 AM

Quote:

Originally posted by ZeLpH_MyStiK
Wow, very smart! Taking a image and dividing it into pixels. Then using trig to rotate the pixels. =) Good job!!!
Yes. You can do a lot on a pixel per pixel basis.

jake13jake 01-06-2004 07:56 AM

Quote:

Originally posted by Mykel
What you can do with a little tweaking:

Made by Giltwist.

I've been trying to get something like that to work for a while.. although as of late I've been working on it like once every other month. Master Storm scripted something like that... The thing is if you hold down the directional key it will keep spinning you, just not on the center, and I wouldn't want that effect...

Mine works with a set centerx and centery.
I've made the radius of the circle the distance from the player to the center. (the image rotates at the same place the player is)

I believe I got stuck on one part though (not certain though)..... and I think it's like this on a lot of my scripts (a toy spaceship script, and an ice script)... it seems that when the players is going diaganol they seem to gain more speed than they would going straight in a directional. I would think it might be the player's speed... but on my toy spaceship npc, that works in one directional only (with rotation--90 sprites... rotation scripts are too laggy) with a freezeplayer set in place, the same problem occurs... Diaganol angles seem to move things faster than directional angles. Could anyone know why?

screen_name 01-06-2004 08:22 AM

It depends on how you scripted it.

jake13jake 01-06-2004 08:38 AM

Quote:

Originally posted by wonderboysp2p
i remember someone awhile back was trying to figure out how to do that exact whirlpool thing
That would be me, but I already knew about that kind of whirlpool thing... As well as the spiral vortex that kat spawned off from my scripting... Still, though, I'm trying to make a !!!PERFECT!!! whirlpool... Although I'm not working on it right now.

jake13jake 01-06-2004 08:40 AM

Quote:

Originally posted by screen_name
It depends on how you scripted it.
I just gave the spaceship script a second look... I bet it's because I didn't sine the momentumx and momentumy checks.


All times are GMT +2. The time now is 02:55 AM.

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