Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-01-2004, 04:48 AM
Mykel Mykel is offline
:o
Mykel's Avatar
Join Date: May 2002
Location: Canton, Ohio.
Posts: 5,526
Mykel has a spectacular aura about
Send a message via AIM to Mykel Send a message via MSN to Mykel
Rotation, the works of Giltwist.

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.
Attached Files
File Type: nw rotate.nw (12.7 KB, 435 views)
Reply With Quote
  #2  
Old 01-01-2004, 05:16 AM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
wow... i don't know how to edit either.
__________________
new account: Trevor
Reply With Quote
  #3  
Old 01-01-2004, 05:56 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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
Reply With Quote
  #4  
Old 01-01-2004, 07:31 AM
Mykel Mykel is offline
:o
Mykel's Avatar
Join Date: May 2002
Location: Canton, Ohio.
Posts: 5,526
Mykel has a spectacular aura about
Send a message via AIM to Mykel Send a message via MSN to Mykel
*Taking Calculus next year.*
Reply With Quote
  #5  
Old 01-01-2004, 08:19 AM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
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!).
__________________
new account: Trevor
Reply With Quote
  #6  
Old 01-01-2004, 10:11 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
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.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #7  
Old 01-01-2004, 10:51 AM
Termina_Owner Termina_Owner is offline
Registered User
Join Date: Oct 2003
Posts: 175
Termina_Owner is on a distinguished road
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.
__________________
- Rance Vicious
Reply With Quote
  #8  
Old 01-01-2004, 11:05 AM
Thought Thought is offline
PipBoy Extraordinaire!
Thought's Avatar
Join Date: Nov 2001
Location: Long Beach, California.
Posts: 692
Thought is on a distinguished road
GScript is too slow for operations like these...
__________________
Rick ([email protected])
#gscript on FreeNode (#gscript Guild, #gscript Information)
Graal User Statistics

I am now using my new account, Rick.
Reply With Quote
  #9  
Old 01-01-2004, 11:45 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
very laggy but i suppose the only way to do img rotation at this point....we need a new command for img rotation
__________________
Do it with a DON!
Reply With Quote
  #10  
Old 01-01-2004, 11:56 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
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
__________________
[signature]insert here[/signature]
Reply With Quote
  #11  
Old 01-01-2004, 03:50 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Geez, the guy was very skilled with trigonometry & math, i just don't like his styling way. :P
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #12  
Old 01-01-2004, 06:18 PM
MysticHaste MysticHaste is offline
Registered User
Join Date: Dec 2003
Location: Australia
Posts: 109
MysticHaste is on a distinguished road
Send a message via AIM to MysticHaste
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.
__________________
spread the herat <3

Quote:
Originally posted by unixmad
Still not sure if it was not someone smoking to mush
Reply With Quote
  #13  
Old 01-02-2004, 05:17 AM
Mykel Mykel is offline
:o
Mykel's Avatar
Join Date: May 2002
Location: Canton, Ohio.
Posts: 5,526
Mykel has a spectacular aura about
Send a message via AIM to Mykel Send a message via MSN to Mykel
What you can do with a little tweaking:

Made by Giltwist.
Attached Files
File Type: nw whirlpool.nw (9.7 KB, 307 views)
__________________
(Married to Skyld)
Reply With Quote
  #14  
Old 01-02-2004, 05:51 PM
marcoR marcoR is offline
Registered User
Join Date: Jul 2003
Posts: 1,349
marcoR is on a distinguished road
These are funky
__________________
If this is your account, contact me.
- loriel
email, jabber: [email protected]
icq: 67530805
aim: lorielvictrix
Reply With Quote
  #15  
Old 01-02-2004, 07:31 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
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
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #16  
Old 01-03-2004, 08:00 AM
Mykel Mykel is offline
:o
Mykel's Avatar
Join Date: May 2002
Location: Canton, Ohio.
Posts: 5,526
Mykel has a spectacular aura about
Send a message via AIM to Mykel Send a message via MSN to Mykel
Yea, I was like: "What the hell could I use these in?"

Till he showed me the whirl-pool level.


__________________
(Married to Skyld)
Reply With Quote
  #17  
Old 01-05-2004, 08:40 AM
wonderboysp2p wonderboysp2p is offline
Registered User
wonderboysp2p's Avatar
Join Date: Sep 2002
Location: -Wonderboy
Posts: 537
wonderboysp2p is on a distinguished road
Send a message via AIM to wonderboysp2p
i remember someone awhile back was trying to figure out how to do that exact whirlpool thing
__________________

we are the llama FORUms!!!EWQ Ce13d5423f23!! 2e1 @$6tgv3uy65!
Reply With Quote
  #18  
Old 01-06-2004, 01:27 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
Wow, very smart! Taking a image and dividing it into pixels. Then using trig to rotate the pixels. =) Good job!!!
__________________
Reply With Quote
  #19  
Old 01-06-2004, 05:17 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
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.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #20  
Old 01-06-2004, 07:56 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
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?
Reply With Quote
  #21  
Old 01-06-2004, 08:22 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
It depends on how you scripted it.
__________________
[signature]insert here[/signature]
Reply With Quote
  #22  
Old 01-06-2004, 08:38 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
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.
Reply With Quote
  #23  
Old 01-06-2004, 08:40 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:01 PM.


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