A small problem with Z value

Started by Vexus, September 22, 2012, 06:48:22 am

Previous topic - Next topic

Vexus

Hi, I'm using the event proximity script and since it uses high values to stay on top of everything some things like screen tint and other stuff show underneath the icon which is not what I really want.

I've been trying to find which line to edit to increase the z value of screen tinting to 9999 but can't seem to find it.

So, anyone could help?

Thanks
Current Project/s:

KK20

Haven't bothered to test the script, but I'll make a few quick guesses just from looking at the script.

First off: Is it an issue to set ALWAYS_ON_TOP to false?

If so, then put it to false and do this. Find this line
@icon_sprite = ALWAYS_ON_TOP ? Sprite.new(topview) : Sprite.new(viewport)
And right below it put this:
@icon_sprite.z = 9999

I think that should work...my mind has been filled with code for the past 3 days. It's getting hard to focus on 5 projects at once.

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!