C
Cupid Stunt
Guest
I'm having issues using fps_real. If I use it to keep time I get a divide by zero error.
If I try to print it to the debug console every second I get a non_init error as shown below.
I am running the game from the IDE. 2.2.4.474
I would like to use fps_real to keep time in my games in case things get bogged down a bit.
If I try to print it to the debug console every second I get a non_init error as shown below.
I am running the game from the IDE. 2.2.4.474
I would like to use fps_real to keep time in my games in case things get bogged down a bit.
Code:
############################################################################################
FATAL ERROR in
action number 1
of Draw Event
for object obj_clock:
Variable obj_clock.fpd_real(100025, -2147483648) not set before reading it.
at gml_Object_obj_clock_Draw_0 (line 3) - show_debug_message(string(fpd_real))
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Object_obj_clock_Draw_0 (line 3)