• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Simple Stopwatch/Timer

BonezyBoy

Member
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);
 

Attachments

Nidoking

Member
The error message means that you're sending 13 arguments to the draw_text_transformed_color function, but it only takes 11. So you need to figure out which ones you put in there that don't belong and remove them. The Manual page will be useful. In general, the best way to solve a problem is to read things - the error message, the Manual page, and your own code.
 

BonezyBoy

Member
The error message means that you're sending 13 arguments to the draw_text_transformed_color function, but it only takes 11. So you need to figure out which ones you put in there that don't belong and remove them. The Manual page will be useful. In general, the best way to solve a problem is to read things - the error message, the Manual page, and your own code.
thank you
 
Top