Hi, I need to make a sprite wrapped inside a rectangle and move with the mouse.
I thought the best solution was to use a container.
However, when I add an input event, I get weird results.
Here is the sandbox link:
Hi, I need to make a sprite wrapped inside a rectangle and move with the mouse.
I thought the best solution was to use a container.
However, when I add an input event, I get weird results.
Here is the sandbox link:
What’s the problem?
The container isn’t moving to the most right of the canvas.
And the mouse cursor does not turn to a “move” cursor when it over the container 50% from center to right
Change the “inspector” script to @2.5.1
.
Wow, thank you very much @samme !
Problem solved