realistic movement

Get help using Construct 2

Post » Mon Oct 26, 2015 8:18 am

Because if you increase the width of the layout, and you use Scroll To for the ship, when the level starts scrolling the wheel stops working properly?
Thanks for your patience


http://www.dropbox.com/s/4f4dlbncaa7dafy/ship_control.capx?dl=0
B
7
S
3
Posts: 54
Reputation: 687

Post » Mon Oct 26, 2015 8:19 am

Because if you increase the width of the layout, and you use Scroll To for the ship, when the level starts scrolling the wheel stops working properly?
Thanks for your patience

http://www.dropbox.com/s/4f4dlbncaa7dafy/ship_control.capx?dl=0
B
7
S
3
Posts: 54
Reputation: 687

Post » Tue Oct 27, 2015 4:45 pm

@gioca72
That's because Touch.x, touch.y is getting the coordinates on the bottom layer by default.
As per the manual you can specify which layer to use with:
touch.x("layer 1") touch.y("layer 1")
B
94
S
33
G
113
Posts: 5,357
Reputation: 73,275

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 31 guests