example have view follow mouse created by 3Dinvent
Category: Utility
Current rating
Added: 18 November 2007
Created by: 3Dinvent
Version: 0
Game description: example on how to have view follow the mouse in room for gamemaker 7.
Reviews
-
Overall Score
-
Graphics
-
Sound
-
Gameplay
-
Story
-
Interface
This Game Has No Reviews.
More Games By This Creator
Page 1/3













GameRoom said over 3 years ago
Another way to do this would be to copy and paste this code:
if mouse_x>view_xview+320 and view_xview<room_width-640
view_xview+=8
if mouse_x<view_xview+320 and view_xview>0
view_xview-=8
if mouse_y>view_yview+240 and view_yview<room_height-480
view_yview+=8
if mouse_y<view_yview+240 and view_yview>0
view_yview-=8
display_mouse_set(512,384)
al-heek said over 3 years ago
is it the
image_angle=point_direction(x,y,mouse_y,mouse_y)
?
or is it not?
grapefruit said over 3 years ago
Nice. Now i know! ^_^
marksmanaim said over 3 years ago
yay ty like hell... I luv you!!!!!!!!!!!!!!!