Touch Stick positioning in FullScreen mode

Get help using Construct 2

Post » Wed May 01, 2013 10:15 am

I've wasted half of last night trying to figure out how to make the following (tutorial) capx work correctly with fullscreen integer scaling:

https://www.scirra.com/tutorials/398/touch-stick-controllers
http://studioryu.net/dev/touchsticktut.capx

The setup works beautifully, unless I put the project in full screen mode - then I'm getting a weird problem with positioning of the pads (all but the simplest one) - they get displayed in wrong place. I assumed I could fix the problem by reading WindowWidth/Height and using it to correct the position - but I just can't get over it.

I'd be grateful for a suggestion on how to modify the above capx to work correctly in fullscreen mode.

Thanks in advance for help/suggestions!
Greg
B
17
S
3
G
3
Posts: 79
Reputation: 3,698

Post » Wed May 01, 2013 1:47 pm

did you anchor the object
B
39
S
10
G
7
Posts: 514
Reputation: 9,426

Post » Wed May 01, 2013 7:54 pm

Hi,

No, there was no anchoring used in this tutorial example.

The problem is, the detection of AbsoluteX/Y seems to work in a surprising way, when the app is scaled up/down to fit fullscreen.

The pad/stick image is supposed to be drawed at the touching point, but it isn't :-(

Still hoping for some help with this,
Greg
B
17
S
3
G
3
Posts: 79
Reputation: 3,698


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 12 guests