![]() |
Showimg Layers and Players
So I've been attempting to script those little water/swamp ripples you see around the players feet on most servers whenever near water/lava or on top of swamp grass,
(For those that don't know this is one of several built-in features which is specially disabled by Stefan on servers such as GK and Zone, which has also been done on Classic). My problem is quite simply that displaying this above the player be it by showimg, showani, within a Weapon NPC, or a Gani Attribute always seems to result in displaying above other players as well, when it ought be displayed above the intended player and below anybody in front of them. Anybody aware of any possible workarounds/solutions or could I be missing something? I have definately set the layer (and toyed with decimal layer as had been posted several times in the past, don't think it is supposed to work) but always end up with the problem of displaying below all players or above all players. |
Nope, had the same problem.
|
Quote:
I had noticed several threads with a similar problem just not in the same order, i'm sure they would benefit from a fix for this on iPhone! |
Would be nice if there were perhaps an image.clientlayer = x; that would apply a layer locally for just the player.
|
Quote:
|
Quote:
findimg(200).clientlayer = 1; ^ It would draw under the player, but over all other players. findimg(200).layer = 1; findimg(200).clientlayer = 2; ^ Would draw under all other players, but over your player. |
Quote:
|
Showimg layers are notoriously stubborn. You don't know the extent of how mad I've gotten screwing around with images going on top of other images. Basically, if you need an image to show above one person and not the other, you're screwed.
On another note, if you have several images you need in specific order on top of each other, you're also screwed because you basically have just layers 1, 2, and 3 to work with. Layer 4 I believe is reserved for applying to the screen, and not the x,y and all layers above that are non-existent. This is one of the features I would love to see in v6, as I know Stefan's doing something with tilelayers for the next version. |
Quote:
|
Can't you add sprites to the player's current gani via script? Add one for the effect by his feet.
|
It's not a hard thing to do in a gani. In this case you should make a custom sprites.png and use SPRITES in the gani, but even if that weren't an option you could still put the images in a gani.
|
Interestingly I came across this problem initially on a GMAP, but noticed it seems to work fine within single levels, I guess this is because X and Y are handled differently in ganis?
|
I had a similar problem- for it to work on a GMAP I had to use this (inside a gani script) for the position
HTML Code:
x = int(player.x * 1000) / 1000; |
That's silly, why would you do that?
If you're worried about it showing at (player.x,player.y) relative to the gmap instead of the level, just use modulus 64. |
| All times are GMT +2. The time now is 07:55 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.