DisplayText doesn't consistently respect Visibility -[ BUG ]-

pHghostpHghost London, UKMember Posts: 2,342

When an actor has a DisplayText behavior in it and its Visibility is set to false, the text correctly doesn't display.

But if an actor starts with Visibility set to true, and then it is changed later on (for example by click), the displayed text stays behind, even though the actor itself stops being visible.

How to reproduce:

1) Create an actor with single DisplayText behavior. Drop on scene three times.
2) Edit two of the actors. In the first, change Visibility to false. In the second, create a rule, which will change Visibility to false after clicking on it. Leave the third the way it is.
3) Run in Creator Preview or as ad-hoc on device.
4) Click (tap) second actor.
5) Compare results.

I've created a bug entry for this problem: http://bugs.gamesalad.com/show_bug.cgi?id=1274

There is a sample project attached for anyone wishing to play around with it.

Comments

  • pHghostpHghost London, UKMember Posts: 2,342
  • pHghostpHghost London, UKMember Posts: 2,342

    Changing 'Visible' while DisplayText is displaying text seems to be the culprit. It 'freezes' the text on screen, and will do so repeatedly, layering uncleared text on top of itself.

    If you:

    1) Make an actor with a rule, when pressed, it Displays text, and leave Otherwise empty,

    when you touch the actor, it will show the text, if you don't touch it, the text disappears. If you:

    2) Add a make Visible false right before the DisplayText,

    when you touch the actor, it will show nothing, disappearing, as should happen. BUT, if you:

    3) Move the make Visible false AFTER the text,

    not only will the text appear (it shouldn't, with Visible set to false), but it will in fact stay displayed, stuck on the screen, even when you stop touching the actor.

    Updated project file attached, newly described behavior in actor in lower row.

  • pHghostpHghost London, UKMember Posts: 2,342

    Anyone at GameSalad HQ seeing this?

    @BlackCloakGS @GeorgeGS

  • ArmellineArmelline Member, PRO Posts: 5,368

    @pHghost said:
    Anyone at GameSalad HQ seeing this?

    BlackCloakGS GeorgeGS

    If you submitted a bug report they've either seen it or its in the queue. Bugs aren't always responded to the same day.

  • pHghostpHghost London, UKMember Posts: 2,342

    OK, I'll wait a bit. Usually, when submitting a bug in the database, I got initial responses quite quickly, though not this time, so I was worried it might have fallen through.

  • ArmellineArmelline Member, PRO Posts: 5,368
    edited July 2015

    I suspect it's just a very very low priority (as it should be considering how easy it is to work around).

  • pHghostpHghost London, UKMember Posts: 2,342

    @Armelline I haven't found any way to work around it, except not using DisplayText, and pre-rendering all text which will be in a project, which isn't really a workaround, as you lose dynamic reactions to things like table values etc.

  • BlackCloakGSBlackCloakGS Member, PRO Posts: 2,250

    Its a bug that I have not had time to fix. The work around is have the actor visibility set to true then have the first behavior in the actors set the visibility to false. Then after that the visibility setting should work.

  • GeorgeGSGeorgeGS Member, PRO Posts: 478

    If you can see the bug in the database we can too. :) It takes time to confirm the issue in-house and then it goes on the list of things to fix.

  • ArmellineArmelline Member, PRO Posts: 5,368

    @pHghost Sorry you're correct, this bug is much worse than it looked from your first post. I hadn't seen your second project example.

    It's not just a bad bug, it's darn weird.

  • pHghostpHghost London, UKMember Posts: 2,342
    edited July 2015

    @BlackCloakGS Thanks! I'll test that out when I get home.

  • pHghostpHghost London, UKMember Posts: 2,342

    @Armelline said:
    It's not just a bad bug, it's darn weird.

    Yes, it is weird. Don't know how to explain it, there is some strange code interplay somewhere.

  • pHghostpHghost London, UKMember Posts: 2,342
    edited July 2015

    @BlackCloakGS said:
    The work around is have the actor visibility set to true then have the first behavior in the actors set the visibility to false. Then after that the visibility setting should work.

    Nope, the text is still getting stuck on screen.

  • BlackCloakGSBlackCloakGS Member, PRO Posts: 2,250

    ok I will look into the bug

  • pHghostpHghost London, UKMember Posts: 2,342

    Thanks!

Sign In or Register to comment.