Help - Search - Members - Calendar
Full Version: Full Screen Crosshair
Game Maker Community > Working with Game Maker > Extending Game Maker > Scripts [GML]
metrogdor22
CODE
draw_line(mouse_x,mouse_y,room_width,mouse_y)
draw_line(mouse_x,mouse_y,mouse_x,room_height)
draw_line(mouse_x,mouse_y,mouse_x,0)
draw_line(mouse_x,mouse_y,0,mouse_y)


This draws 4 lines, connecting the top,bottom, and both sides to the mouse.
Ruzzinator
CODE
draw_line(0,mouse_y,room_width,mouse_y)
draw_line(mouse_x,0,mouse_x,room_height)


Could you do this instead?
dark_master4
You could also try this for a nice looking old-school effect:
CODE
draw_line(0,0,mouse_x,mouse_y)
draw_line(0,view_hview,mouse_x,mouse_y)
draw_line(view_wview,0,mouse_x,mouse_y)
draw_line(view_wview,view_hview,mouse_x,mouse_y)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.