cody12
4th November 2008 - 03:12 PM
hey i know how to make a clock for a gamebut when i do it does not draw it on the screen i was wounderin if someone could make a example i can download because GM wont let me draw it on screen
Nintendo-pie
5th November 2008 - 06:03 PM
More information please. Where is the code? What does it say?
Most likely scenario, you've put it in the wrong event. Is it isn't the draw event, it probably should be.
tophunter7
6th November 2008 - 12:08 AM
I made a quick piece of code.
Put this into the draw event of an object and run the game.
| QUOTE |
draw_set_color(c_white); draw_circle(room_width/2,room_height/2,22,false); draw_set_color(c_red); draw_line(room_width/2,room_height/2,room_width/2+lengthdir_x(12,90-current_second*6),room_height/2+lengthdir_y(12,90-current_second*6)); draw_set_color(c_blue); draw_line(room_width/2,room_height/2,room_width/2+lengthdir_x(16,90-current_minute*6),room_height/2+lengthdir_y(16,90-current_minute*6)); draw_set_color(c_lime); draw_line(room_width/2,room_height/2,room_width/2+lengthdir_x(20,90-current_hour*30),room_height/2+lengthdir_y(20,90-current_hour*30)); draw_set_color(c_black); draw_circle(room_width/2,room_height/2,22,true); |
Shouldn't be too hard to see how I did that.
Any questions about it, don't hesitate to ask .... in this topic.
~TH7