0 Favourites

Lingering Text and Images Not Spawning Properly

  • I've had these two niggling issues with some pinned behavior so I kinda wonder what I'm doing wrong or what else I should try to alleviate. Here's a gameplay video with most of the problems I'm talking about here:

    Subscribe to Construct videos now

    I'm the crazy bee game guy. Pegs are spawned at beginning of match and each peg is assigned a random health value that I store in the peg. I then shoot that value to a text field and the text is spawned to each peg. So when the peg dies, the text box dies with it. My problem is (and it happens randomly...grr) the LAST peg to be knocked off the board will go away but its text box is left behind for a while then "may" disappear. The part in the video is at ~1:30. The Peg gets slowly sapped of HP and goes to zero(which usually you don't even see since the peg is told do destroy itself at 0) and the "0" remains to the very end.

    Secondly, when a peg goes to zero, it spawns pollen. Pollen accrues a multiplier and has a quota to be captured, so I slap a multiplier count in a pinned text box and a flashing arrow pointing at each pollen to help distinguish importance.

    When Pollen is on-screen > Spawn PollenMultiplier Text

    Trigger Once             > Spawn Looky Arrow

    But not every Pollen spawns with these two, some come out with nothing while one right next to it has both tags. This happens quite frequently throughout the video, just look for a naked pollen ball! You'll also notice that the pollen might randomly spawn the two assets somewhere on its journey downward. Lower right hand on this clip, the peg spawns naked, but right before it is harvested it acquires the text and arrow:

    Hesitant to post a capx but if anyone thinks they can sort it out PM me and I can share. Or throw ideas at me to try. Oh the current game is here:

    The Wrong Sort Of Bees v.80

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
378 33,261
part12studios's avatar
part12studios
Unread hot topic
0 Favourites
[Plugin] tag text
188 25,447
RBuster's avatar
RBuster
Unread hot topic
118 32,902
rexrainbow's avatar
rexrainbow