Pick a Random Instance Correctly

Get help using Construct 2

Post » Sun May 31, 2015 11:26 pm

]There are 3 of the same sprites on the screen and I am doing a command System: Pick Random Instance of Object, On Function Call - Create Fire at Object.ImagepointX(1), Object.ImagePointY(1)

3 more events just like this with image points 2,3,4 as well.

When I press play they all create the fire sprite at the same time instead of only at one random instance of the 3 objects.

I would upload an image, but it seems that option is gone
B
18
S
8
G
1
Posts: 56
Reputation: 2,018

Post » Mon Jun 01, 2015 12:34 am

you can still add images, just place them between the [ img ] [ /img ] BB tags. (without spaces)

I can make it work like this:

Image
Nothing goes unanswered!
B
24
S
5
G
1
Posts: 434
Reputation: 3,446

Post » Mon Jun 01, 2015 2:10 am

When you call a function, the picking is reset. Pass in the UID to the function, and Pick by UID.
ImageImageImage
B
71
S
21
G
220
Posts: 3,646
Reputation: 123,721

Post » Mon Jun 08, 2015 5:50 pm

Thank you @blackhornet
B
18
S
8
G
1
Posts: 56
Reputation: 2,018


Return to How do I....?

Who is online

Users browsing this forum: ksiads, Magistross, mtnboy22, Rable and 3 guests