HigorQuinto's Forum Posts

  • 7 posts
  • My problem is: I need to find ONLY strings that contain _ in an array and show only those strings.

    To put it another way: I have an array with several room names. The public ones have ! at the end of their name, the private ones have _.

    I'm having trouble filtering in a for each to find only the ones with _ and display them on the screen.

    I tried find, but it doesn't work with tokenat.

  • Hey, guys!

    A quick question: how do I make the cannon follow its target within the limit imposed by the tower? For example, it would follow an enemy's movement in front of it but subtly.

    I have the animations frame by frame of its movement, but if it's too complicated, I can use just the left, middle, and right frames.

    Could you help me? It's the first time I do something like this.

    Thank you! ❤️

  • Okay,I will try this.

    Thanks guys <3

  • But in families, the objects must share their attributes and HP, right?

    Example: one Golem has 10 HP and a Slime has 5 HP. If they belong to the same family, they can only have the same HP, is that so?

    My question is if there's a way for the function to identify the enemy that's being hit or not. If both are being hit with AoE and receive 4 damage, do I have to create two functions (one function for the Golem and one for the Slime) or not?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Let's say I set all the instance variables for HP like hp, for all enemies and they collide with AoE.

    Is there any way or command that subtracts the HP of each one of them without a need for doing it manually?

    Example: I've got 10 different enemies. The same arrow hits all of them. Is there a function I could make to subtract their HP or do I need to make a function for each? (the same goes for AoE)

  • But how I can subtract from HPvariables for every enemy on the AoE?

  • Hey guys! I have a problem here.

    Is there any way of creating a function or something alike that, when dealing with multiple enemies, would identify which one was hit and its HP reduced without me doing it case by case?

    Because it's a relatively big project where I'll have more than a hundred enemies. It's a Tower Defense, so, for example, if I have an aoe hability, how do I make the system detect WHO was hit and reduce its HP without me needing to do it one by one. Is there a way?

    Thanks!

  • 7 posts