|
Force - render function? Displaying 1-5 of 5 total.
1
nimrand
|
I have written I text box function that displays a text box on demand by hooking a text-box-drawing function to the Render event. My original version of the code works, for some reason, but I modified it to make it more user-friendly and renamed some of the variable identifiers and have come upon an unexpected problem. It seems that verge isn't firing the render event unless it detects that it needs to be refreshed (ie- a sprite has moved). It simply flips between two pages until I move my sprite and vwalla- I finally see my text box. Obviously, I need verge to fire the event on each screen refresh. Is there a way to force Verge fire the render event every screen-refresh??? I know of the Render() function, but that won't work cause it would require me to write a hard loop and that causes problems with handling other events. I don't know why this problem didn't show up in my original version. I may have run into the same problem, found a way to fix it, and simply forgot about it by now, but I can't find anything obvious in my original code that would do this.
Posted on 2001-01-24 22:40:10
|
TheGerf
|
Use Hookretrace(function);
then throw an 'R' at the end of your rendersting.
Hookretrace calls a function during every screen refresh, so it may do what you want.
TheGerf, not just any gerf.
Posted on 2001-01-25 00:59:02
|
nimrand
|
Thats precisely what I'm doing, but it isn't calling it after every screen refresh. If verge doesn't detect that the screen has changed, then it doesn't render the render string at all, including my function. The problem is that even if my text boxes change and need updating (ie- one appears or disappears) verge doesn't necessaryily see that the screen needs updating. Thanks anyway. Got any other ideas?
Posted on 2001-01-25 09:54:12
|
nimrand
|
It turns out that my script wasn't clearing the keypress event correctly. Now exactly why that translated into the program was acting, I don't know, but it works now and all is good :-).
Posted on 2001-01-25 10:19:14
|
grenideer
|
ya, had to be your script, because verge will refresh the screen whether or not it has changed.
Posted on 2001-01-25 16:00:23
|
Displaying 1-5 of 5 total.
1
|
|