How do I make aText object clickable

Get help using Construct 2

Post » Mon Feb 16, 2015 10:28 am

Hello to all, in my app in one of my layouts i have the object "List" and "Text" objects.
When i add the function on Tap, go to the previous layout, under Android it never goes to the previous layout.
If i add on Tap go to layout by name "layout1", it does the same problem...
B
27
S
10
G
6
Posts: 1,499
Reputation: 7,990

Post » Mon Feb 16, 2015 12:48 pm

Have you checked if your previous layout is placed over your current layout?
I mean this, supposing whe are actually playing on LVL5:
Cattura di schermata (16).png


The previous layout is the one that is over your current layout in the "Projects" bar.
You do not have the required permissions to view the files attached to this post.
B
11
S
3
G
1
Posts: 91
Reputation: 997

Post » Mon Feb 16, 2015 12:59 pm

Thanks i solved that problem, now im stuck with another problem :p with the "List" object not working under Android.
B
27
S
10
G
6
Posts: 1,499
Reputation: 7,990

Post » Mon Feb 16, 2015 1:11 pm

Instead of using List, you could create an image with the same aspect of the list with interactive SpriteText on, that places itself to the position you prefer when you click something, and that places itself out of layout when you don't need it anymore.

Example:
We have a list of skins we can put on a character, but they are locked:
Cattura di schermata (17).png


Now, when we press on a locked button (in this case the plant) construct2 moves the buttons outside layout, and places the popup at the same position:
Cattura di schermata (18).png


Obviously you don't need to move them all, just Pin the objects to another one and move that one.
In my case the buttons are pin'd to the first button, and the popup that appears is made by text and sprites pin'd to the "buy button"

*Sorry for my terrible english
You do not have the required permissions to view the files attached to this post.
B
11
S
3
G
1
Posts: 91
Reputation: 997



Return to How do I....?

Who is online

Users browsing this forum: bluehatpixel, chimchase, KADIX and 12 guests