how i do run the boat in the layout, keeping the wheel on the window ?
Thank you very much
Put the boat on a layer with parallax 100,100 and give it scrollto behaviour.
Put the wheel on a layer with parallax 0,0.
The problem is that when the background begins to flow, the wheel does not command more.
As you can see from capx
You can use touch.X("layer"), touch.y("layer")..
(Mouse.X("layer") if you use the mouse instead of touch)
where you replace "layer" by the layername the wheel is on..
That should solve it..
forgive me, but I know little C2 ... where should I put the commands you told me?
on event #1 1st action
on event #3 1st and 3rd action
if that's what you mean, it does not work......... rudder turns fast, on the touch
Not very consistent..
In event 1 you use layer2
in event 3 in the first line you don't add a layer to your touch
and in the third line you use layer1
Develop games in your browser. Powerful, performant & highly capable.
Thank you very much, you have been very useful