how to stop duplicate instances movement

Get help using Construct 2

Post » Tue Oct 15, 2013 12:36 am

hi,

I am new to construct2 ...

I had import one sprite with the behavior of bullet and then made several duplicate sprite from the same sprite. On the layout startup i am moving those sprites from left to right and when any one of them come in the middle of the screen then i stop the movement by making the speed as 0.

Problem is i want to stop these all duplicate instances on their same Axis if any one of them reach in the middle of screen but it is not working it overlap each other till they don't reach in the middle of screen. How can i control all duplicate instances using one of their instance action?


regards


B
9
S
2
Posts: 108
Reputation: 1,010

Post » Tue Oct 15, 2013 1:53 am

[QUOTE=farhanx]
Problem is i want to stop these all duplicate instances on their same Axis if any one of them reach in the middle of screen but it is not working it overlap each other till they don't reach in the middle of screen.

[/QUOTE]

Could you clarify what you mean by them overlapping each other until they don't reach the middle? I'm not clear on what is happening. If you could upload your .capx file it would really help.

Also, how are you detecting when they've reached the middle of the screen? If you're doing it by collision with another object, you may need to add a "pick all" event to pick all the other bullet sprites. Otherwise your action will only affect the one sprite instance that did the colliding.

I made an example here but I'm not sure if it's doing what you want from your description.http://storage.wertle.com/construct2/bulletThing.capx
B
11
S
2
Posts: 87
Reputation: 1,112

Post » Tue Oct 15, 2013 1:03 pm

thanks alot Wertle , i didnt knew the i can select all instances using "PICK ALL" ...once again thanks
B
9
S
2
Posts: 108
Reputation: 1,010


Return to How do I....?

Who is online

Users browsing this forum: beohs, blackhornet, tunepunk and 10 guests