Problem with DragDrop/On Touch(capx)

Get help using Construct 2

Post » Tue Jan 29, 2013 1:44 am

Hey guys, I believe the DragDrop behavior and On Touch action doesn't work properly in Letterbox Scale,Crop and Scale. It does work well on Letterbox Integer Scale and when fullscreen is off.

Whenever i attempt to drag the greenbox in either of the modes ive mentioned, it will position the greenbox much lower than what its supposed to be. When i try touching the redbox, it doesnt position the greenbox anywhere at all.

What can be causing this? is it a bug?

Thanks.


Edit:

It seems like i discovered the real problem ive been having. I put the 2 objects in the HUD layer and set parallax to 0,0.

When i attempt to touch/drag, it does not work.

https://dl.dropbox.com/u/101797089/dragdroptouchproblem.capx

Parallax 0,0 doesnt work for touch controls? is it only good for score,health and lives?Iplaygames2013-01-29 02:51:02
B
10
S
4
G
3
Posts: 46
Reputation: 3,036

Post » Tue Jan 29, 2013 11:03 am

so any takers here? This seems like a legit problem.
B
21
Posts: 23
Reputation: 2,429

Post » Tue Jan 29, 2013 4:11 pm

To get the touch coordinates on layer 0 use Touch.X(0), Touch.Y(0) or Touch.X("Layer 0"), Touch.Y("Layer 0").
B
54
S
28
G
18
Posts: 1,520
Reputation: 24,990

Post » Tue Jan 29, 2013 4:50 pm

[QUOTE=ramones] To get the touch coordinates on layer 0 use Touch.X(0), Touch.Y(0) or Touch.X("Layer 0"), Touch.Y("Layer 0").[/QUOTE]

Thank you!That worked perfectly.
B
10
S
4
G
3
Posts: 46
Reputation: 3,036


Return to How do I....?

Who is online

Users browsing this forum: plinkie and 20 guests