draw_text and function priority

Posted By: Reconnoiter

draw_text and function priority - 07/02/15 15:46

Hi,

I having a bit trouble with camera movement and draw_text. Some draw_text keeps floating behind cam movement, as if the camera function is called later in the script than the draw_text code. While I have the camera code earlier in my script than the draw text code. While if I copy the camera code to the back, some other draw text are shown in the right positions and some other not (the draw_text are called within other functions).

Is there some other value I miss for function priority (which function is called first?). Or could something else than function priority be the cause of this? Normally I would copy my code here but the project is really big and I dont really know what would be vital code here. Basically the camera code is just within a startup function.
Posted By: Ch40zzC0d3r

Re: draw_text and function priority - 07/02/15 16:02

proc_mode = PROC_LATE
Will fix it
Posted By: Reconnoiter

Re: draw_text and function priority - 07/02/15 17:50

Thanks man, after adding it to a few functions that called draw_text it works.
© 2024 lite-C Forums