Heroes4hire's Forum Posts

  • 2 players same base difforent variable. 2 enemies, same base difforent variable.

    I want each player to pick the closest enemy. Then move towards them. I'm using pathfinding.

    I've tried pick nearest. But when using multiple instances they target the same entity.

    And then.

    When distance <= 40 stop, trigger battle boolean.

    But only one instant will stop. The other will pass get closer/ pass through its target.

  • Wow. Hierarchy is powerful. Had no idea. So simple! Thanks for the shout this will make everything easy

  • Ah. Yeah. So. I have bodies linking to bases.

    But, I have several sets of bases. All spawning in their own torso.

    Will I need to make several bodies to corilate to their own group?

    Guess I'll find out soon enough

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Wow! Yup, I'm a construct 2 guy. Just working from what I remember.

    I'll try hierarchy or containers. Construct 2 had families. I toyed with the idea, but couldnt find it..

    So just tried brute forcing it.

    Lionz, no it's a variable called bodycount. Was just trying to simplify it for the example.

    Thanks for advice guys. Apprieciated

  • So. I have player base(s)

    I have bodies.

    Each base spawns and pins a body. And gives it the same variable to group them. count.

    I want the base to tell the body its angle every tick. In a variable .deg.

    I've tried

    for each torso, base.count=torso.count

    Set torso.deg to base.deg.

    But this only seems to affect one instant of the torso, or it affects them all.

    Is there a better function to do this? Like for each instance.

    Or, a better way to check sprites individually?

    Or should I group them into families?

    I can post a demo if needed

  • Got it.

    For each enemy base.

    Player base, pick nearest enemybase.x/y

  • I have 2 player base. And 2 enemy base.

    I want each player base to locate the closest enemy base and move towards it

    I'm sure this is obvious. I might just be a bit fried.

    Thanks

  • Hi all! I was a user of construct 2. Was in the forum all the time. But, life is life, and I've been busy.. for 6 years.

    Suddently I remembered construct 3 was in development years ago! Super excited to try it out!

    3d objects and camera. Mwah, dream come true. I basicly gave up trying to make something 3d years ago. Original doom 3d builds just weren't working.

    So, asides from a kenshi style avatar (4 elements) game I'm starting.

    I'm incredably excited to see starwing NES style game potential!

    Wanted to know if you can layer 3d objects, so a spaceship can traverse a xyz universe?

    Also, can you make 3d objects have a 3d shape. Like a sphere not a square.

    Just bought and started using. Cant wait!