Maako's Recent Forum Activity

  • So I have "Defenders" in a family. Then I have the "Defender Movers" which are bullet objects I attach to the Defenders to do their movement. Then I have "Detectors" which are large circles that are placed on the Defenders when they are created. The Detectors don't move with the Defenders, they are made so that the Defenders will only go after enemies that overlap inside the Detectors.

    I want to make it so when an enemy is overlapping a Detector, the Defender Mover will set it's angle to the closest enemy to it and move towards it, while the Defender Sprite is attached to the Mover.

    The problem I'm having is that only the first instance works. Any copies I make after that don't respond to enemies at all.

    I don't fully understand how to make UID's work, what I have now is basically copied from an earlier part of my game from something similar.

    Sorry for the large post, I'm not sure if there's a simpler way of doing what I'm trying here.

    Thanks for any help.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well switching it to "is overlapping" did the trick. Thanks for the help!

  • Hey thanks for the response. I did what you suggested, and it still hits both enemies. I may have not done it correctly. Like I said I'm not very familiar with this program

    Did I do something wrong?

    Thanks

  • I'm trying to make it so that if more than one enemy are perfectly overlapped with each other, a bullet will only hit the enemy that has the highest Z order.

    I already have the enemies in a family, and I have a feeling it's a pretty simple solution, but I don't know a lot about this program and not sure how else to look this up.

    Thanks

  • Hmm. Unfortunately I'm still using the free version, so I don't have the family function available. I was planning on getting the full version eventually, I guess I might as well get it then.

    Thanks for the help

  • Hey so I'm having a bit of trouble with what you said for my second question. How would I use a UID to attach the health bar to the enemies?

    To clarify I'm trying to make it so that I can spawn different enemies with different properties, but still use the same health bar to attach to them.

    So I could spawn a "Skeleton" enemy and spawn and attach a health bar to it.

    Then I could spawn a "Zombie" enemy and spawn and attach the same health bar to it.

    I obviously can't have 2 separate conditions that say "Always Set Health Bar to Health of Skeleton" and "Always Set Health Bar to Health of Zombie". So I'm not sure how to set this up.

    I hope that makes sense.

    Thanks for the help

  • I posted something then deleted it because I figured out what was happening lol. It seems to work fine thanks for your help. I'll try now to do what you suggested for my second question.

    Thanks again

  • Hey thanks for the response. I'll try and rephrase question 1.

    The way my health bar works now is that it's width is set to a unit's Health value. (100 Health = 100 Width)

    Later in the game as the unit gets stronger, lets say it's maximum health goes up to 500. I'm trying to make it so that instead of the Health bar being 500 units of maximum width, it would have the same maximum size all the time, so a unit with 100 maximum health would have the same size health bar as a unit with 500 maximum health.

    I guess I'm trying to make health bars that would represent a percentage of a unit's health rather than it's absolute number value.

    I hope that was more clear. Thanks again for the response.

  • Sorry if this is kind of a long request but every health bar tutorial I look up only tells you how to make a single health bar with a fixed maximum health.

    What I have now is a health bar sprite that's width is set to the health value of the unit.

    What I'd like to do is:

    1. Have it so the width value is set as a percentage of the unit's health, so that no matter how much maximum health the unit has, the health bar will always have the same maximum size.

    2. Be able to attach this health bar to a variety of different enemies, so that I don't have to make a new health bar for each different enemy I make.

    Sorry if I could have explained it better, that's the best way I can think of describing it.

    Thanks anyone for any help

  • Ya I suppose you're right. Il'll go try that. Thanks

  • It seems you can download Macromedia Flash 8 legally for free. I'm just wondering if I could use it to make animation frames for my game or would I have to buy and license a full version?

    Thanks

  • Ok now I understand whats happening

    Thanks for the responses!

Maako's avatar

Maako

Member since 14 Feb, 2015

None one is following Maako yet!

Trophy Case

  • 9-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

11/44
How to earn trophies