render();
Displaying 1-4 of 4 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
RageCage

would someone clarify what render() does?

Posted on 2004-04-16 02:01:18 (last edited on 2004-04-16 02:01:39)

Overkill

Render(); draws the map, and if there's a map, it means it will also automatically clear the screen. It will cause the tile animations on the map to also be refreshed, along with the retrace layers on your map. Basically, in V2 you'd use it all the time, because in that one you had to use it to draw properly. Just make a habit of putting a Render(); before drawing routines and Showpage(); after them. Then, it should never give you problems.

Note: don't put Render() before a drawing routine in a Hook*() function, because it will cause an overflow of sorts.

Posted on 2004-04-16 02:47:48 (last edited on 2004-04-16 02:49:09)

RageCage

yeah, thats what I thought it did... it also seems to crash my game. It was placed within a loop under a function called by a hookretrace. when deciding to crash

Posted on 2004-04-16 04:24:47

vecna

yeah because that would cause an infinite recursion loop

render()
-> Found 'R' in renderstring
-> hookretrace
-> render()
-> Found 'R' in renderstring
-> hookretrace
-> render()


etc.
If you're calling render inside of hookretrace, you're doing it wrong. ^_^
Tho I recall some version of v2.6 or something being smart enough to ignore a render() while inside hookretrace. I could do that, but I should probably make an error message explaining why its being ignored, because having it simply not execute would confuse people as well.

Posted on 2004-04-16 12:44:27


Displaying 1-4 of 4 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.