Hello , I am coding a game for a school project and I have encountered an issue when making a a stopwatch/timer
if you have any idea on how I can fix this or make it better, it would help a lot.
Code I'm using -
create event :
secs = 0
step event :
secs+= (delta_time/1000000)*room_speed
draw event :
draw_text_transformed_color( room_width/40, 1,
x,y,string(secs div 3600) + ":" + string(secs div 60) + ":" + string(secs mod 60),
1, 1, 0, w, w, w, w, 1);
if you have any idea on how I can fix this or make it better, it would help a lot.
Code I'm using -
create event :
secs = 0
step event :
secs+= (delta_time/1000000)*room_speed
draw event :
draw_text_transformed_color( room_width/40, 1,
x,y,string(secs div 3600) + ":" + string(secs div 60) + ":" + string(secs mod 60),
1, 1, 0, w, w, w, w, 1);
Attachments
-
108.8 KB Views: 8
-
32.3 KB Views: 7