- Code: Select all
xscreen=min(max(xscreen, 16), view.width-16);
yscreen=min(max(yscreen, 16), view.height-16);
Put this in draw actor problem solved, now you wont go off screen
xscreen=min(max(xscreen, 16), view.width-16);
yscreen=min(max(yscreen, 16), view.height-16);
Users browsing this forum: No registered users and 1 guest