Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Replicating default flicker (https://forums.graalonline.com/forums/showthread.php?t=86391)

DustyPorViva 06-16-2009 07:58 PM

Replicating default flicker
 
I'm working on a custom movement system, and I'm trying to find a way to replicate the default flickering.

Needs to:
- flicker the player, but not the shadow
- not hide the player's nick as well
- not interfere with the player's gani(after the player 'flies back' when hit, they are still able to move, but will still flicker. This means setting the player's ani will making continuous animation like walking loop and such... not pleasant to look at)

hideplayer and player.alpha/zoom/etc... each do at least one of the above.

Any suggestions?

cbk1994 06-17-2009 06:15 PM

I guess you could hidePlayer() then showani a shadow at the player's location, but it might not look very smooth.

DustyPorViva 06-17-2009 06:24 PM

Hideplayer hides the player's nick as well, and I'm trying to avoid having to rescript default nicks.

Mark Sir Link 06-17-2009 06:47 PM

Quote:

Originally Posted by cbk1994 (Post 1499994)
I guess you could hidePlayer() then showani a shadow at the player's location, but it might not look very smooth.

Quote:

Originally Posted by DustyPorViva (Post 1500001)
Hideplayer hides the player's nick as well, and I'm trying to avoid having to rescript default nicks.

change player.alpha then?

I would imagine when it comes down to it the easiest thing to do would be modifying the hurt gani to add a shadow under their feet.

DustyPorViva 06-17-2009 07:43 PM

player.alpha hides the nick as well. And flickering persists beyond the hurt gani, as you are only 'hurt' for I think 1 second, and then can move for a second or so afterwards, still flickering.

Mark Sir Link 06-17-2009 08:40 PM

Quote:

Originally Posted by DustyPorViva (Post 1500020)
player.alpha hides the nick as well. And flickering persists beyond the hurt gani, as you are only 'hurt' for I think 1 second, and then can move for a second or so afterwards, still flickering.

perhaps run a small script on the clientside adjusting the players body/shield/head graphic to a transparent graphic for .2 sec, then adjust back, repeat a few times?


All times are GMT +2. The time now is 05:40 AM.

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