Spawn coins on random objects

Get help using Construct 2

Post » Tue Dec 24, 2013 2:35 pm

Hello there,I am trying to build a game much like stickrun from facebook and I just don't know how to make for example coins to spawn on top of random generated objects and one more question,what are containters and what are they good for?I tried to do this using a container by spawning not the object but the container that have both the coin and the obstacle but it didn't work.
B
6
S
1
Posts: 37
Reputation: 600

Post » Tue Dec 24, 2013 8:37 pm

I would suggest going through the excellent Tutorials section on the site, Reading the manual and also exploring the sample projects that come with Construct 2. They will help you a lot.
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,583

Post » Wed Dec 25, 2013 9:00 pm

Actually the construct 2 manual is what made me quit construct 2 one year ago,and using those sample projects I did created an alpha version of my game but you are not helping here...Thank you for the advice anyways.
B
6
S
1
Posts: 37
Reputation: 600

Post » Wed Dec 25, 2013 9:27 pm

Containers might not be useful for what you're trying to do. As a Container will spawn items in that container if one is used.

What you might want is to create a family, whack a bunch of sprites in it, then give the family a variable (say a number) and then at the start of the layout, randomly give all instances of the family a random number between 1-5. Then if the Sprite variable = 1, spawn object A, = 5 Spawn object B, etc

Let me know if you need a CAPX to get what I mean.
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,699

Post » Wed Dec 25, 2013 9:48 pm

I was thinking about families also and searched trough the internet for them and found that they can be very useful in what I want to make,unfortunately I don't have bought C2 at the moment but a capx would be nice and could make me understand what are and how can I use families.
Thank you!
B
6
S
1
Posts: 37
Reputation: 600


Return to How do I....?

Who is online

Users browsing this forum: Bootfit, OBLIVION, plinkie and 22 guests