Text offset on touch position

Get help using Construct 2

Post » Mon Jul 22, 2013 12:07 am

Hello!

I'm trying to figure out how to implement an offset to a text with the game in "Scale Out" type.

So, my problem is, I'm unable to think in a new solution and all my tries didn't returned a working model.

What I need is align a text, who follow the touch, when the touch.X is 50 pixel of the left or right of the screen.

With "Scale Out", my code stopped working...

My last tries included make invisible detectors, but their position still the original as when created and the screen stretched on the width side.

So, when the touch is near the left side of the screen, I want give a offset to the following text, so, it'll not cut the text aligned to the touch.

Something like this:
. = touch
| = sides


|.text aligned to the right side                      |
|                      text aligned to the left side.|

|                      .text aligned to the middle|TELLES08082013-07-22 00:23:20
ImageImageImageImageImageImage
Image
B
98
S
22
G
16
Posts: 1,338
Reputation: 21,202

Post » Tue Jul 23, 2013 3:34 am

Hello, I don't want to bother, but does @ Ashley, @Newt, @Kyatric, @R0J0hound or @Joannesalfa, could help me?

Hard times trying to figure out without success...

Actual situation:


How should be:


I'm feeling a little bit frustrated by my stupid knowledge =\

CAPX to speed up the help. It's working for the right side, but to the left side, it's not.
https://dl.dropboxusercontent.com/u/47035927/temp/alignment_problem.capx

Now it's working as desired =P
Solution on the .capx. Download and see.

Thank you!!TELLES08082013-07-23 04:18:35
ImageImageImageImageImageImage
Image
B
98
S
22
G
16
Posts: 1,338
Reputation: 21,202

Post » Tue Jul 23, 2013 4:59 am

@TELLES0808

Well shoot... I just worked this out for you and you found it... Cool.

Here's my solution if you're interested.

https://dl.dropboxusercontent.com/u/7409023/construct/alignment_problem.capx

B
22
S
4
G
1
Posts: 100
Reputation: 2,150

Post » Tue Jul 23, 2013 4:42 pm

@klkitchens Thank you!

I'll work on it to improve and make the transition smooth.
ImageImageImageImageImageImage
Image
B
98
S
22
G
16
Posts: 1,338
Reputation: 21,202


Return to How do I....?

Who is online

Users browsing this forum: Aquanex2, jhjconstruct, Tuiii and 7 guests