influencing an object instance

Get help using Construct 2

Post » Tue Jul 09, 2013 7:24 am

Hi,

I'm relatively new to construct 2, and I have a problem selecting an instance of a sprite.

I have several instances of a sprite (animation speed 0) and code which forces a check only when two instances are pressed (using global variables). When each is pressed the sprite changes it's frame from 0 to 1.

If the check is true then the system acknowledge the selection and leave the frame as is. If the check come false then I need to reset both instances selection (set frame to 0).

Thanks for the help in advance
B
3
Posts: 3
Reputation: 231

Post » Tue Jul 09, 2013 9:47 am

You should link a capx when you have a problem you want help with, people can help you more easily and you will have more answers ;)
If I understand well and your only problem is to reset both instance frame to 0, you just have to add a new event, using the "compare frame" condition on the sprite, just to compare it to 1. This event will select both sprites with frame number 1. You can then change the frame back to 0, if all your other conditions are verified.
B
17
S
8
G
4
Posts: 473
Reputation: 6,211

Post » Wed Jul 10, 2013 2:25 pm

Thanks,
I will try to remember next time to post a capx.
I have solved the problem in the fashion you wrote.
B
3
Posts: 3
Reputation: 231


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests