making actor follow mouse

rabbidrabbitrabbidrabbit Member Posts: 1
edited October 2014 in Working with GS (PC)

I need to make an actor follow the mouse around the screen. I've been using a move to mouse.xposition mouse.yposition function, but when it catches up to my finger it stops moving. I changed it so that every fraction of a second it moves to the mouse position and that made it work, but caused a lot of lag. I need to use a move to and not a constrain function because I don't want the actor to jump around the screen, it needs to move the distance.

another problem I've been having when running the game in the arcade is some of the actors don't visually load until a few seconds after they're on screen. Is there a way to make the graphics load before the actors are spawned?

Sign In or Register to comment.