Cant get text bubbles to work.

0 favourites
  • 3 posts
From the Asset Store
Customizable speech bubble dialogue system! With this dialogue system, you can finally have speech bubbles in your game!
  • Hello. I'm new here so please go easy on me. :)

    I'm making a game where I created a system where when an enemy is damaged a text bubble will appear on the screen showing how much damage was taken. This is working perfectly.

    The problem I'm having is I'm also trying to do something similar when all enemies on the screen are damaged. Currently when several enemies are damaged at the exact same time, they will take the damage as they should, but the text bubble showing how much damage taken is only showing up over one of the enemies, rather then all of the enemies that took the damage.

    Is there a way to make it so the text will show up over all enemies when they are damaged?

    In other words, this works:

    <img src="http://www.fixieonline.com/capture.jpg" border="0" />

    But this does not (the text bubble only shows up over one damaged enemy even though multiple enemies are taking damage):

    <img src="http://www.fixieonline.com/capture2.jpg" border="0" />

    (By the way, "cell" is the enemy. plasmaeffector is used when destroying enemies one at a time by touching them. radiationeffector is pressed to damage all enemies on the screen at the same time.)

    Thank you for any help you may be able to offer!

  • Hey Burvey, great explanation of the problem.

    The issue you're running into is that system actions do not run on all picked objects: they simply run if all of the event's conditions were met. (I got this from here).

    It is easy to fix though. Move your healthbubbles creation and setting the text into a sub-event with a System condition of "For Each cell". You can read more about loops here. Good luck with your game!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you very much. That worked perfectly!

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