Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Motion Blur (https://forums.graalonline.com/forums/showthread.php?t=69089)

wild8900 09-30-2006 11:46 PM

Motion Blur
 
How do people achieve motion blur on graal? For example, when you are drunk on zodiac. Im not asking for a script, I just want to know, how did they do it? Im thinking they took a screenshot and added alpha transparency then put it onto the screen.

projectigi 10-01-2006 12:18 AM

i was told its a "bug" when setting tilelayers[0].alpha in a timeout

Skyld 10-01-2006 12:22 AM

It's a "bug" when setting tilelayers[0].alpha to anything other than what it should be.

projectigi 10-01-2006 12:36 AM

well i think the strength of the effect depends on to what you set it
i guess its 0 - 1
dunno whats the strongest though, i would guess 1 is the strongest

wild8900 10-01-2006 12:37 AM

Thats it? Wow I was expecting some huge explanation and stuff. I want to test this out.

I tried this script but got no result
Quote:

//#CLIENTSIDE
if (created||timeout){
tilelayers[0].alpha=0.7;
timeout=0.05;
}

Angel_Light 10-01-2006 12:50 AM

Quote:

Originally Posted by wild8900 (Post 1224321)
Thats it? Wow I was expecting some huge explanation and stuff. I want to test this out.

I tried this script but got no result

I think you might want to try GS2 :o

PHP Code:

//#CLIENTSIDE
function onCreated() {
  
onTimeOut();
}

function 
onTimeOut() {
  
tilelayers[0].alpha 0.7;
  
setTimer(0.05);



wild8900 10-01-2006 12:58 AM

Gah GS2 doesnt like me.
Thanks man Ill try this.

EDIT: Still no luck. Btw, I placed it in a weapon npc, can that be the reason?

EDIT2: I was on a gmap.... so thats why it didnt work. Thanks for the help guys. <3

xAndrewx 10-01-2006 05:30 PM

Yea, contiga told me about this. I used it to create a stoner gas on Era, I had to re-name it though... Don't let pissy globals on your server, ever. :]

Skyld 10-01-2006 05:41 PM

You don't need a timeout for it @ Angel_Light, wild8900.

KuJi 10-01-2006 09:35 PM

Quote:

Originally Posted by xAndrewx (Post 1224481)
Yea, contiga told me about this. I used it to create a stoner gas on Era, I had to re-name it though... Don't let pissy globals on your server, ever. :]

Hahhaha.. how'd you get it to work on gmaps =o?

xAndrewx 10-01-2006 09:46 PM

timeouts... :p

Galdor 10-01-2006 10:26 PM

wow! just checked it out it looks great!

Zero Hour 10-02-2006 12:17 AM

Quote:

Originally Posted by Galdor (Post 1224687)
wow! just checked it out it looks great!

You should post a small sample/screen shot for those of us who don't have access to client ;)

wild8900 10-07-2006 12:09 AM

oh here, this is for those of you who havnt seen it before.
On this one I had a script that spins the screen in an oval motion.
http://img247.imageshack.us/my.php?i...eenshotoo3.jpg

excaliber7388 10-07-2006 12:24 AM

Whoa that's neat

xXziroXx 10-07-2006 01:23 AM

Funny how scripts can be made awesome due to a scripting error/bug.

wild8900 10-07-2006 09:12 AM

I wonder how people thought of this. Maybe someone was bored and decided to see if they can set the alpha of of the tile layers. Who was the first to find this "bug"?

Admins 10-07-2006 04:26 PM

It's not a bug :) The alpha value is for making upper tile layers transparent (tile layer support is not finished yet). You can also change red/green/blue, or x/y for moving the ground without moving objects. For gmaps may be you can use player.gmap.tilelayers

Twinny 10-07-2006 05:23 PM

Quote:

Originally Posted by Stefan (Post 1227206)
For gmaps may be you can use player.gmap.tilelayers

Interesting idea :)

wild8900 10-08-2006 01:11 AM

Quote:

It's not a bug The alpha value is for making upper tile layers transparent (tile layer support is not finished yet). You can also change red/green/blue, or x/y for moving the ground without moving objects. For gmaps may be you can use player.gmap.tilelayers
Oh, thats cool, Ill have to lay with that a bit!

Zero Hour 10-08-2006 01:29 AM

I am still very eager to see a screen shot of this x_x

excaliber7388 10-08-2006 02:04 AM

Quote:

Originally Posted by Zero Hour (Post 1227544)
I am still very eager to see a screen shot of this x_x

Your dreams have come true (a few posts ago)
http://img247.imageshack.us/my.php?i...eenshotoo3.jpg

Zero Hour 10-08-2006 03:19 AM

Quote:

Originally Posted by excaliber7388 (Post 1227589)
Your dreams have come true (a few posts ago)
http://img247.imageshack.us/my.php?i...eenshotoo3.jpg

Sorry to have missed that - looks really cool. I can think of some really neat "tunnel vision" things to do with it :D

Yen 10-08-2006 09:12 PM

Hmm..
When I change the x or y of it, I'm not blocked by any tiles.
Is that normal?

Chris 10-08-2006 09:49 PM

Quote:

Originally Posted by Zero Hour (Post 1227612)
Sorry to have missed that - looks really cool. I can think of some really neat "tunnel vision" things to do with it :D

I thought you saw that on Era before? Andy added gas shells/tear gas npcs that did that very same thing months ago.

xAndrewx 10-08-2006 09:53 PM

Quote:

Originally Posted by Chris (Post 1227963)
I thought you saw that on Era before? Andy added gas shells/tear gas npcs that did that very same thing months ago.

:D

Admins 10-09-2006 01:42 AM

Quote:

Originally Posted by Yen (Post 1227933)
Hmm..
When I change the x or y of it, I'm not blocked by any tiles.
Is that normal?

Normally it is only changing the display of the tiles, the blocking behaviour should stay the same


All times are GMT +2. The time now is 08:50 AM.

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