the code i used is, every tick set object to mouse.x mouse.y. And the problem is that there is a restricted square in the game and i dont want the object to leave the square/border. i tried using solid behavior on the wall but it doesnt work.
i think i could use custom movement but i dont really know
Develop games in your browser. Powerful, performant & highly capable.
object follow border or edges on sprite
i found example in example browser
editor.construct.net