GameMakerHelpBlog

Friday, December 1, 2006

Drawing Mouse position and fps

This is a simple script for showing the position of the mouse and the fps in your game... the max fps is usually the game speed

[code]

//get the mouse's position another simple script in draw event!!!!!!!
draw_text(x,y,mouse_x)
draw_text(x,y+16,mouse_y)
//also draw your fps and room speed
draw_text(x,y+32,fps)
draw_text(x,y+48,room_speed)
[/code]

Example included:Link

Labels:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home