Scrollbar and Touch.Y

Get help using Construct 2

Post » Sat Oct 05, 2013 6:46 pm

The following capx file is just a scrollbutton and a camera that you can move with the arrow keys. Can someone explain why setting the Scrollbutton.Y (which is on the HUD layer) to Touch.Y is being offset when you use the arrow keys to move the camera along the Y Axis?

https://dl.dropboxusercontent.com/u/7439411/scirra/scrollbar%20example.capx

Note: With the new Debugger feature, look at the global variables, the touch variables, and the Scrollbutton.Y and compare.

I've tried LayerToCanvas and CanvasToLayer and nothing seems to fix this issue.Asmodeus2013-10-05 18:48:47
B
9
S
2
Posts: 25
Reputation: 1,050

Post » Sat Oct 05, 2013 7:13 pm

I answered my own question.. In that capx I provided, just change Touch.Y to Touch.Y("HUD")
B
9
S
2
Posts: 25
Reputation: 1,050


Return to How do I....?

Who is online

Users browsing this forum: bluesun66 and 9 guests