How do I make aText object clickable

  • 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...

  • Have you checked if your previous layout is placed over your current layout?

    I mean this, supposing whe are actually playing on LVL5:[attachment=0:fiupxdoa][/attachment:fiupxdoa]

    The previous layout is the one that is over your current layout in the "Projects" bar.

  • Thanks i solved that problem, now im stuck with another problem :p with the "List" object not working under Android.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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:

    [attachment=1:1novyf2q][/attachment:1novyf2q]

    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:

    [attachment=0:1novyf2q][/attachment:1novyf2q]

    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

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)