Ok. So far I have been playing around with loops in the hopes of simplifying other projects, and I have hit upon a little oddity. I am trying to allow dynamic switching between sprites, which is working fine. However, I am also trying to get the other ships to point at the currently selected vessel. This is working well for the first ship, but it breaks down as you go. Any ideas on how to fix this?
http://www.2shared.com/file/4798183/5a1 ... ement.html
Develop games in your browser. Powerful, performant & highly capable.
You have it rotating each ship towards Blue without specifying which Blue it needs to rotate towards. There needs to be a condition to pick which object in the Blue family is selected. Basically you just need a subevent under event 6 where it checks if Blue's ID value is equal to that of Global 'picker'. Here's a modified CAP with the fix.
Wow. Thats really simple. Probably a good sign I shouldn't be doing this at 3am. Thanks a lot!