Message Board
Message Board > Fenix / Bennu / Gemix / DIV > Reset get_id or frame(0) |
June 19, 2006, 22:56 | |
DTM
Earthling! 821 posts |
So I can loop through all processes of a type more than once per frame. Is there a function for this? Or a way of doing this? *** As i'm writing this i've tried frame(0). Seems too work. In that case is it okay to call frame(0) anywhere? I mean... it doesn't like reset stuff. Or repaint stuff? As I would be calling it several times per _real_ frame. ____________ :o |
# |
June 19, 2006, 23:10 | |
Sandman
F3n!x0r 1194 posts |
Code: for(you=you;as long as you want;you++)//whatever... loop z = get_id(type <processname>); if(z<=0)//get_id() will return 0 if no more processes of the specified type are alive break; end //do your thing end frame(0); end [Edited on June 19, 2006 by Sandman] ____________ BennuWiki Yes, my avatar has grey borders in IE (so get a decent browser) ROOFLEZ ROOFLEZ |
# |
June 19, 2006, 23:26 | |
DTM
Earthling! 821 posts |
The main thing is is it okay to use frame(0) lots as I wasn't sure what hidden things it does. But if you use it I guess its okay ____________ :o |
# |
June 20, 2006, 03:21 | |
Sandman
F3n!x0r 1194 posts |
Indeed it is. Frame(0) will just reset all things usually reset by frame(), but will not tell FXI the process is done this frame. To do that, you must use frame(x); where x>0. In fact, it will tell FXI, apart from the reset stuff, to execute other processes with the same priority first and then come back to this one.
____________ BennuWiki Yes, my avatar has grey borders in IE (so get a decent browser) ROOFLEZ ROOFLEZ |
# |
June 20, 2006, 14:08 | |
PEader
お前はもう死んでいる 1486 posts |
It will affect calls to collision, won't it?
____________ I see 57,005 people. |
# |
June 20, 2006, 17:27 | |
Sandman
F3n!x0r 1194 posts |
That can well be, yes, since collision() works similar to get_id().
____________ BennuWiki Yes, my avatar has grey borders in IE (so get a decent browser) ROOFLEZ ROOFLEZ |
# |
Message Board > Fenix / Bennu / Gemix / DIV > Reset get_id or frame(0)