random objects

Get help using Construct 2

Post » Wed May 15, 2013 2:50 pm

I would like to know how to bring down an object randomly, every time I hit a certain object, thanks in advance, I await response;-)
B
10
S
3
G
2
Posts: 7
Reputation: 1,741

Post » Wed May 15, 2013 3:07 pm

+ on collide X with Y
-> Create Object at (random(1, X), random(1, X))

If you want it more detailed you should tell us more details ;)
B
15
S
6
G
6
Posts: 512
Reputation: 5,550

Post » Wed May 15, 2013 5:18 pm

ok I would like to make a game like that, the bricks every time you are hit by the ball, I should give a random object, below is the link to the main screen of the game:
http://www.flickr.com/photos/95364538 @ N08/8740163623/in/photostream
but here are the events recorded so far
http://www.flickr.com/photos/95364538 @ N08/8740778187/in/photostream
B
10
S
3
G
2
Posts: 7
Reputation: 1,741

Post » Sat May 18, 2013 10:37 am

sorry, I can explain in more detail? because of programming do not know much;-) and I can not go along with the newly introduced the game;-)
B
10
S
3
G
2
Posts: 7
Reputation: 1,741

Post » Sat May 25, 2013 1:53 pm

apparently, it seems that I'm not the only one who does not know how to use this program ...
B
10
S
3
G
2
Posts: 7
Reputation: 1,741

Post » Sat May 25, 2013 3:11 pm

From what I understand, you're trying to create a random object when your brick is destroyed. Instead of having differet objects for each of your "powerups", put them all in one object as different animations. Then, have an event:

- Brick On Destroyed
-> Brick Spawn Powerup
-> Powerup Set Animation to choose("anim1", "anim2", "anim3")

Then for collecting the powerups its a simple change to

- Player On Collision With
|- If Powerup Animation == "anim1"
-> Do Powerup1 stuff
|- If Powerup Animation == "anim2"
-> Do Powerup2 stuff
B
40
S
12
G
7
Posts: 603
Reputation: 7,646

Post » Sat May 25, 2013 8:33 pm

thanks with my whole heart EncryptedCow, it seems complex to do, though I try, then I tell you, unfortunately I have two handicaps, one is not to know English, so I rely on google translator and and the two do not know how to program :-(
B
10
S
3
G
2
Posts: 7
Reputation: 1,741

Post » Sat May 25, 2013 11:27 pm

PM me and I'll walk you through it :)
B
40
S
12
G
7
Posts: 603
Reputation: 7,646


Return to How do I....?

Who is online

Users browsing this forum: LeFuji, qaisarehman and 24 guests