A little puzzle...

For questions about using Classic.

Post » Wed Feb 04, 2009 2:07 pm

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
B
2
G
4
Posts: 49
Reputation: 1,148

Post » Wed Feb 04, 2009 5:27 pm

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.
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Wed Feb 04, 2009 8:59 pm

Wow. Thats really simple. Probably a good sign I shouldn't be doing this at 3am. Thanks a lot!
B
2
G
4
Posts: 49
Reputation: 1,148


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests