What is wrong with this code?

0 favourites
  • 3 posts
From the Asset Store
5 levels with simple coding Source-code (.c3p) + HTML5 Exported
  • Hi all,

    Yesterday i updated from r84 to r89. After that one of the events didn't work properly anymore. It seems I can't figure out what I'm doing wrong, so maybe you guys/girls can help me out.

    Situation: I have several instances of a Text object. When a text object has content, place a sprite over it. When a text object has no content, delete the sprite over that particular text object instance.

    Creation is no problem, but deletion isn't working anymore after.

    The code for deletion is:

    Sprite > is overlapping Text: no action

    [subevent]: Text > has no content: Destroy Sprite.

    Before this worked, now it only works when none of the instances have content.

    I hope this explanation is clear enough, if not, let me know!

    Thanks in advance,

    MAD (Mark aka Dark)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Try adding 'For each Sprite' above the 'Sprite is overlapping Text' condition. 'Is overlapping' used to have a built-in for-each, but if you specifically need per-instance behavior you need to add it in again now.

  • Try adding 'For each Sprite' above the 'Sprite is overlapping Text' condition. 'Is overlapping' used to have a built-in for-each, but if you specifically need per-instance behavior you need to add it in again now.

    Thanks,

    That did the trick.

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