How do I stop a sprite to spawn another sprite?

Just started using Construct 2? Post your questions here

Post » Thu Jan 29, 2015 6:46 am

So I've managed to have a sprite spawn itself again after a drag and drop. The problem though, is that the drag and dropped sprite can spawn another one like it just did and this can keep going infinitely. How do I disable it from spawning another one, while still having the base sprite have the ability to spawn more when selected?

I've attached a capx.
You do not have the required permissions to view the files attached to this post.
Risk Rocket now available on Google Play
Image
B
36
S
15
G
6
Posts: 337
Reputation: 6,300

Post » Thu Jan 29, 2015 7:40 am

I've posted this a few times before.. hope it's suitable for you.

drag_from_sprite.capx


This is even simpler but it replaces the 'origin' object each time, which might not be suitable.
drag_from_sprite_2.capx
You do not have the required permissions to view the files attached to this post.
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Fri Jan 30, 2015 5:39 am

Thank you so much codah! This really opened doors with what I can do.
Risk Rocket now available on Google Play
Image
B
36
S
15
G
6
Posts: 337
Reputation: 6,300


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest