Steering Wheel Control problem

Get help using Construct 2

Post » Thu Apr 11, 2013 9:29 pm

Hello, Im making a Steering Wheel Control, it is a layer called HUD, because it should be fixed to the screen I set that layer to parallax 0,0

This is what causes the problem because Touch wont register touch events corresponding to that layer.

If I set the parallax to 100,100 the COntrol functions correctly, but it disapears off the screen.

Here is the file:
http://www.znelarts.com/cosas/SteeringWeel.capx

Any help with this??
Image
B
14
S
4
G
4
Posts: 132
Reputation: 3,148

Post » Fri Apr 12, 2013 4:33 pm

anyone?
Image
B
14
S
4
G
4
Posts: 132
Reputation: 3,148

Post » Fri Apr 12, 2013 4:46 pm

It is not disappearing off the screen for me. Its where you have it in the editor. I'm not certain whats happening. but did you try the anchor behavior?
B
20
S
2
Posts: 257
Reputation: 2,431

Post » Fri Apr 12, 2013 7:43 pm

[QUOTE=Auntie Val] It is not disappearing off the screen for me. Its where you have it in the editor. I'm not certain whats happening. but did you try the anchor behavior?[/QUOTE]

Yeah its not disapearing because its set to parallax(0,0), but the wheel doesnt functions properly, it doesnt rotate to where you are clicking or touching.

Only if you set the layer to parallax(100,100) the wheel works correctly, but it disapears offscreen
Image
B
14
S
4
G
4
Posts: 132
Reputation: 3,148

Post » Fri Apr 12, 2013 8:41 pm

Use Touch.X("UI"), Touch.Y("UI") to use the touch positions on the "UI" layer.
B
54
S
28
G
18
Posts: 1,520
Reputation: 24,990

Post » Mon Apr 15, 2013 7:03 pm

Thank you, it helped but now I got another problem.

What about multitouch, the proble is if I touch the accelerator first and then the wheel, it takes the first touchs coordenates and not the coordenates of the touch in the wheel
Image
B
14
S
4
G
4
Posts: 132
Reputation: 3,148


Return to How do I....?

Who is online

Users browsing this forum: austinblackbelt, Yahoo [Bot] and 20 guests