Yandoman's Forum Posts

  • 3 posts
  • Dragoonblade, Construct 2 does give each object a unique name on startup, kinda. It gives a unique identifier (UID) number to each object that can be used to pick it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Cheers ramones! That worked a treat, and that method will make a tonne of other things easier too. Much appreciated.

  • I'm making an RTS. UnitSprites need to check and modify each others variables to attack and track each other. My problem is that with the picking system, once I have picked one UnitSprite it excludes all other UnitSprites from the event, so I am unable to access or modify them.

    For example, I want UnitSprites to track each other by setting UnitSprite.TargetX to the current X position of the UnitSprite designated by UnitSprite.TargetUnitSpriteUID.

    But, when I loop through all UnitSprites, I can't pick TargetUnitSpriteUID because picking is inherited, and TargetUnitSpriteUID has already been excluded.

    What would be the least cumbersome way to set UnitSprite.TargetX to UnitSprite.TargetUnitSpriteUID.X?

  • 3 posts