Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   working with water, tile layers (https://forums.graalonline.com/forums/showthread.php?t=134263001)

scriptless 04-27-2011 04:55 PM

working with water, tile layers
 
Okay, I have a few questions. Currently I am working on making the ability to dive, with realistic features for classic style servers.

I have a few questions on what might be the best approach. Currently I am having to make Tilelayer[0] have water tiles to make player swim.. then Layer 1 to have sand for what you see at the bottom.. and layer 2 to be the water you are diving under..



To accomplish this I am making player's alpha change. But I am not a big fan of this since the player becomes semi-transparent. Tho does begin to look like being "under" the water.

I am also changing the player.z to with plans that you will dive to your shadow..

MrOmega 04-27-2011 05:20 PM

For the whole alpha problem, keep the player alpha between 0.85 and 1, but adjust the red/green/blue values of the player to get a better effect. Also, you'll want to do this in a gani so all players will seem the same effect.

scriptless 04-27-2011 05:27 PM

Players swimming with a alpha less then 1 should be completely invisable to other players. However to other swimming players with a alpha less then 1 they should be able to see them. And if at different depth's I was thinking of making players harder or easier to see.. or what do you think about making player's zoom smaller as it gets closer to bottom maybe?

hmm.. I know I am going to need alot of work with ganis. gani scripts let all players see the effect if im not mistaken. if i just have a dive variable tho i can have a script read each variable from the player and have each player determin how other players are drawn.. mixed with zoom you can create dynamic player sizes then

Now that I think of it why can't I just draw over my player with a gani.. or make part of the gani transparent? like a player of my player over my player. then make it blue with transparency.. seems like it should work, right?

Also I reconnected to the server and the level completly messed up.. mis drew itself and just totally messed up.. how can i fix/prevent this? Might be good to add I am using 5.3 not 5.1 for my graal version.

Had to delete my cache and somehow the level glitched to a single layer level.. weird.

also can i apply different tilesets to different layers?

Deas_Voice 04-27-2011 11:02 PM



video fixed, only post the id that comes after "watch?v=".

edit: why are you recording your screen with a videocamra? there are programs that can record your screen, you know..

scriptless 04-27-2011 11:20 PM

Quote:

Originally Posted by Deas_Voice (Post 1646002)


video fixed, only post the id that comes after "watch?v=".

edit: why are you recording your screen with a videocamra? there are programs that can record your screen, you know..

Thank's for fixing that. Actually recording it with my phone.. :x iPhone 4.. and yes I do know there are programs but I don't have them and was just entirely to lazy to find any decent free ones. My phone has good enough quality for me most of the time.

MysticalDragon 04-30-2011 12:18 AM

He was referring to Graals video Capture I think?


All times are GMT +2. The time now is 06:58 AM.

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