Position to object

Just started using Construct 2? Post your questions here

Post » Wed Mar 11, 2015 6:25 pm

Hi folks,

I got the objects A -Z with fixed positions. Now I want to spawn the objects 1 - 26 randomly at each of the A - Z positions at the start of my programm.
The spawning works fine, also the positions are right. The only problem is the random function. It would be great if you guys could help me with this issue.

Thanks a lot and so long:)
Posts: 7
Reputation: 189

Post » Wed Mar 11, 2015 6:45 pm

Here's a very simple way to do it:
fixed spawn.png

SpawnFamily is the family of objects that are being randomly placed at the fixed position objects which are part of the Fixed Family.

Capx attached.
Random Fixed Spawn Sample.capx
You do not have the required permissions to view the files attached to this post.
Posts: 232
Reputation: 6,294

Post » Wed Mar 11, 2015 7:24 pm

It works fine! I didnt know the 'pick a random x instance' funktion. Thank you so much and have a great time
Posts: 7
Reputation: 189

Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests