Same Family different obstacles?

0 favourites
  • 3 posts
From the Asset Store
This music pack covers differents situations for visual novels, anime games and many more!
  • These are called "Units"

    Units share the same family and the same pathfinding behavior

    To differentiate Units types,

    Some Unit Types have the [Land] Variable

    Some Unit Types have the [Water] Variable

    There are 3 types of Solids

    (Solid Main)

    (Solid Land)

    (Solid Water)

    Both Unit types recognize all 3 (Solid) as solids

    ------------------------------------------------------------------------

    What I want is

    Land Units to only recognize (Solid Main) and (Solid Water) as solids

    but not (solid Land)

    and

    Water Units to only recognize (Solid Main) and (Solid Land) as solids

    but not (solid Water)

    -------------------------------------------------------------------------

    Whenever a new unit is created, the entire family recognizes all 3 Solids

    (Solid Main)(Solid Land)(Solid Water) as solids for some strange reason.

    I'm either doing something wrong or there's a glitch with construct. Can anyone help me with this issue?

    here's the code Im using

    gyazo.com/3cc3e5da87b05f253662dc9303475c7c

  • Two things spring to mind, are they set to Custom and not Solids, and did you regenerate the obstacle map which you must do after adding obstacles.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes, and the solids are created on start, but when the water unit is created, thats when all become solids become solid to all unit types

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