Pick Object Help..was working with Ver Construct0972

This forum is currently in read-only mode.
From the Asset Store
Pick Up Items Sound effects for your game, Take them for a ride right now and you will worry no more.
  • I am not sure what happend. This was working ok with Construct 0972. The number tags for the tanks are not showing up and picking by number is not working now.

    I upgraded to Construct 0976 so I can change the the sound to the new sound system, but it seems a lot more has changed. That broke my CAP.

  • I fixed it by moving all of the actions in the "For Each Tank" loop into the action where the tanks are created. The way you had it, each tank's ID was being set to the final LoopIndex(8). Hope that helps.

  • Thanks linkman2004,

    I did the changes you said and that does fix my problem. I just wish I knew why it was working on the older build of Construct and not the newer one.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • In a recent build a crash was fixed which required that newly created objects don't really "fully exist" until the next event tick. You can use them in the same event that created them, but the next events won't treat them as existing until the next tick. It's a bit of an annoying quirk but it seems it's the way the engine has to work, in order to avoid other crashes in the event engine that have been reported. In this case, the 'For each' subevent to the start of layout event will not consider the tanks created in the same tick, but the 'for 1 to 8' loop will. As Linkman pointed out, you can do everything in the same event anyway.

    As a side, you don't need any of the for-each loops in the 'Pick tank' groups. The conditions work like that normally.

  • Thanks Ashley for clearing that up for me.

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