Forgive me if this questions has been asked elsewhere, but I haven't been able to find a good example I've been able to make use of.
So I'm continuing to try to get into code base and still having some difficulty wrapping my head around the language. I'm trying to build a little piece of code to open a text window which displays a message, hangs around for a few seconds and then closes itself. Something very similar to Galv's Time Message Pop Ups. After some struggle, I've built a window that displays my text, but getting it to wait is giving me trouble.
From what I've inferred from other threads, it sounds like the practice is to use the window's update method to have the object update some number of times or frames and then close. However, I don't seem to understand how to put this into practice. I've tried using a for loop in different ways (Having it take place in the update method as a countdown, as well as using a loop in the initialize which calls the update method every time), but the end result is that nothing seems to delay the next step where the window closes.
Am I on the right track, or way off here? Would someone happen to know a relatively straight forward example somewhere in the code base or in a plugin that I might use for guidance? Any help would be appreciated.
Thanks!
So I'm continuing to try to get into code base and still having some difficulty wrapping my head around the language. I'm trying to build a little piece of code to open a text window which displays a message, hangs around for a few seconds and then closes itself. Something very similar to Galv's Time Message Pop Ups. After some struggle, I've built a window that displays my text, but getting it to wait is giving me trouble.
From what I've inferred from other threads, it sounds like the practice is to use the window's update method to have the object update some number of times or frames and then close. However, I don't seem to understand how to put this into practice. I've tried using a for loop in different ways (Having it take place in the update method as a countdown, as well as using a loop in the initialize which calls the update method every time), but the end result is that nothing seems to delay the next step where the window closes.
Am I on the right track, or way off here? Would someone happen to know a relatively straight forward example somewhere in the code base or in a plugin that I might use for guidance? Any help would be appreciated.
Thanks!