Creating objects on objects randomly

For questions about using Classic.

Post » Fri Jun 11, 2010 7:12 am

See the image link below:

[url:ujcz7b46]http://ofhell.com/menu.png[/url:ujcz7b46]

I am trying to spawn mining across Sprite9 and I have about 20 Sprite9's littering the layout. Using the above code, mining just spawns around one of the Sprite9's rather then diversifying across them all. All help is appreciated.
B
8
S
1
G
2
Posts: 79
Reputation: 1,108

Post » Fri Jun 11, 2010 9:25 am

for some reason, I think I might be missing a simpler solution but

first off, I'm assuming the random(1000) milliseconds might have been a logic error? that would make the spawn take place between 0 and 999 milliseconds apart, but have no effect on which object spawned it. you need to use conditions to get construct to refer to a specific object

Also, for this example I assumed you only wanted 1 spawn to take place at a time.

unfortunately, as awkward as this solution is, I can't provide an explanation now, I'm going to be late if I don't leave to work now, but please ask questions if you have any, I'll be back later, plus, the other board members might be able to help:


[url:3dwho6yq]http://dl.dropbox.com/u/1013446/randomspawn.cap[/url:3dwho6yq]
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Sat Jun 12, 2010 11:01 am

Thanks again tons, I do understand this now after looking at it a bit more.
B
8
S
1
G
2
Posts: 79
Reputation: 1,108


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest