[SOLVED] Events and multiple instances of one object

For questions about using Classic.

Post » Sun Feb 13, 2011 3:05 am

I'm having trouble getting an event to refer to multiple copies of one object, in this case, a sprite.

http://i.imgur.com/qDleW.png

As you can see, I have the sprite randomly spawn along the X-Axis at the top of the screen. It then drops until it collides with solid (A box along the bottom of the screen- I've tried making it collide with only the 'box' object, I get the same result) and stays there. The thing is, this only works for the first sprite. All the others just fall through the bottom.

What am I doing wrong here? All my other instances of spawning an object and using events with it work.


.cap if you think you can figure it out:
http://www.mediafire.com/?dwz164kwh79hdes

Thanks in advance for your help.
B
1
G
2
Posts: 5
Reputation: 635

Post » Sun Feb 13, 2011 7:15 am

Change the first event to a standard collisions check.

Badguy collides with solid? Blamo.
B
9
S
2
G
4
Posts: 346
Reputation: 2,726

Post » Mon Feb 14, 2011 12:04 am

Huh. I guess I was thinking too hard. After a little fiddling with other collision items, I simplified to

For each 'Badguy'
=/= Badguy and Solid are overlapping

It works now. Thanks.
B
1
G
2
Posts: 5
Reputation: 635


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 9 guests