I kind of made a border at the edge of the frame

On the update script of your character paste this

if (this.y > project.height-(this.height/2)) {
this.y = project.height-this.height/2;
}
if (this.y < (this.height/2)) {
this.y = (this.height/2);
}
if (this.x < (this.height/2)) {
this.x = (this.height/2);
}
if (this.x > project.width-(this.height/2)) {
this.x = project.width-(this.height/2);
}

3 Likes

It works really well! Thanks for sharing :grinning:

1 Like

at first it was specific to an object that was 75x75 but then i made it universal so you didnt have to change any code at all

1 Like