the boat (Resolved)

Get help using Construct 2

Post » Mon Oct 26, 2015 5:51 pm

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
Last edited by gioca72 on Tue Oct 27, 2015 5:22 pm, edited 1 time in total.
B
7
S
3
Posts: 54
Reputation: 687

Post » Mon Oct 26, 2015 6:41 pm

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.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Oct 26, 2015 9:37 pm

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
B
7
S
3
Posts: 54
Reputation: 687

Post » Mon Oct 26, 2015 9:53 pm

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..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Oct 26, 2015 10:35 pm

forgive me, but I know little C2 ... where should I put the commands you told me?
B
7
S
3
Posts: 54
Reputation: 687

Post » Mon Oct 26, 2015 10:51 pm

on event #1 1st action
on event #3 1st and 3rd action
Image Image
B
23
S
13
G
135
Posts: 871
Reputation: 70,345

Post » Tue Oct 27, 2015 8:16 am

B
7
S
3
Posts: 54
Reputation: 687

Post » Tue Oct 27, 2015 9:01 am

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
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Oct 27, 2015 9:32 am

Image
Image Image
B
23
S
13
G
135
Posts: 871
Reputation: 70,345

Post » Tue Oct 27, 2015 5:21 pm

Thank you very much, you have been very useful
B
7
S
3
Posts: 54
Reputation: 687


Return to How do I....?

Who is online

Users browsing this forum: atmas and 21 guests