HookRetrace
Displaying 1-7 of 7 total.
1
resident
|
This may be a fault of my understanding of the command. Is HookRetrace supposed to stay hooked after a map command? Because it appears to do so at the moment.
Posted on 2004-05-05 12:45:22
|
Overkill
|
It is actually supposed to, so you can get away with certain effects after activating a map event (For example, start raining when you walk to one point on the map, or something).
When you want to "unhook" something you previously hooked, just do this:
Hookretrace("");
Posted on 2004-05-05 20:35:34
|
resident
|
Yeah, it's not a big fuss. Infact I'm finding the way it works very handy for the displaying of a Baldurs Gate style console, since I can just set it running and then forget about it.
For some reason I just had the impression that retraces were linked to each individual map, and a map change would reset more or less everything, so I didn't want to go relying on it if it was something that was likely up for changes later. So I thought I'd check.
Posted on 2004-05-06 09:17:38
|
blues_zodiakos
|
HookRetrace is excellent for doing effects that have to be drawn every frame (to prevent flicker) without having to have your own render loop. I'm currently using it in my particle effects system. It can be used for so many things it's hard to imagine.
Posted on 2004-05-06 21:21:35
|
Buckermann
|
Can I use HookRetrace without a map? Eventually I would like to put my cursor routine in a HoolRetrace when possible.
Posted on 2004-05-07 13:52:21
|
RageCage
|
no, the hookRectrace function is called at 'retrace' in the map renderstring. thus you need a map... although I cant see how youd have verge runnning with out your own loop running or a map loaded... if you have your own loop running you can simply call the retrace function in your loop.
Posted on 2004-05-07 14:06:45 (last edited on 2004-05-07 14:08:30)
|
blues_zodiakos
|
An easy thing you can do then is just to create a blank map. You can do all sorts of things to make your programming easier, like having a blank map for the title screen, one for the game, one for the ending, etc. You can put all the relavent code for those in the actual map vc instead of the system.vc. :D
Posted on 2004-05-08 18:28:54
|