how i do run the boat in the layout, keeping the wheel on the window ?
Thank you very much
http://www.dropbox.com/s/v1yne2jee5a69dy/ship.capx?dl=0
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
http://www.dropbox.com/s/rzig0g5j35co7xl/Ship2.capx?dl=0
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
http://www.dropbox.com/s/rfktvboqg9ko7o2/Screenshot%202015-10-27%2008.58.40.png?dl=0
http://www.dropbox.com/s/nb6ep4p5q5k8bye/Ship3.capx?dl=0
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