Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: Vexus on September 22, 2012, 06:48:22 am

Title: A small problem with Z value
Post by: Vexus on September 22, 2012, 06:48:22 am
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
Title: Re: A small problem with Z value
Post by: KK20 on September 22, 2012, 02:38:58 pm
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.