P
PandaFwiend37
Guest
I am working on a project where the player has to control an object using the mouse. I have the object being created at the mouse's location and statically stays following the mouse's location while moving. The issue I'm having is that I need it to have a collision with the walls of the level. I don't necessarily need the mouse to be confined within the walls, but at least the object needs to stay within the walls. Any ideas or help would be greatly appreciated!
I am using the following code within a controller object:
instance_create_layer(mouse_x,mouse_y,"Layer",oMouseObject);
and within the object I am creating:
x = mouse_x;
y = mouse_y;
I am using the following code within a controller object:
instance_create_layer(mouse_x,mouse_y,"Layer",oMouseObject);
and within the object I am creating:
x = mouse_x;
y = mouse_y;
Last edited by a moderator: