Hello!
I'm making a simple window to pop up when your book makes a note. It's just 50x50, invisible background, and sits in the corner sporting nothing but the icon. It's not the first window I've scripted, but it is the first using the function I'm struggling with.
What I want to happen is that after two and a half seconds (150 frames) the icon fades out; I was going to do this via the
My problem is that the function doesn't run at all; not that it's neccessarily bugged, it's never called. I tried to use Calestian's Achievements script for reference, specifically the achievement notification block (original script link is dead sadly), but they didn't do anything particularly different to me as far as I can tell.
The solution could be really simple but I've had no luck finding it.
Thanks in advance!
I'm making a simple window to pop up when your book makes a note. It's just 50x50, invisible background, and sits in the corner sporting nothing but the icon. It's not the first window I've scripted, but it is the first using the function I'm struggling with.
What I want to happen is that after two and a half seconds (150 frames) the icon fades out; I was going to do this via the
update function via the Window_Base class. It was my understanding that this function is called every frame, so overwriting it for this specific window would allow me to gradually reduce the contents_opacity before disposing of it.
Ruby:
def update
@wait_time += 1
if @wait_time >= 150
self.contents_opacity -= 2
dispose if self.contents_opacity <= 0
end
end
My problem is that the function doesn't run at all; not that it's neccessarily bugged, it's never called. I tried to use Calestian's Achievements script for reference, specifically the achievement notification block (original script link is dead sadly), but they didn't do anything particularly different to me as far as I can tell.
The solution could be really simple but I've had no luck finding it.
Thanks in advance!