How do I spawn objects within the player screen?

Get help using Construct 2

Post » Thu Jun 29, 2017 8:29 pm

Trying to make a rain effect, but I don't want to create the raindrops all over the layout since that would lag the game. Instead I want the raindrops to spawn within the player screen. How do I do this?

Thank you.
B
9
S
1
Posts: 26
Reputation: 731

Post » Thu Jun 29, 2017 9:21 pm

There's a few ways you could do this. I am assuming you would like to spawn the raindrops only from the top of the screen which would mean getting the screen's coordinates.

Are you planning on using sprites for the raindrops? Also, do you want the raindrops to have a random pattern for when they are spawned (so that they have a random X position when they are created)?
B
8
Posts: 11
Reputation: 324

Post » Thu Jun 29, 2017 9:31 pm

Yes, on top of the screen, sprites as raindrops and a random spawning pattern would be great. Thanks for helping me out!
B
9
S
1
Posts: 26
Reputation: 731

Post » Thu Jun 29, 2017 9:43 pm

Ok, I had a capx that achieved something similar to this I'll try and find it right now.
B
8
Posts: 11
Reputation: 324

Post » Thu Jun 29, 2017 10:13 pm

Message: PaulFortune can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
https://www.dropbox.com/s/q7d8ffmw6expt1p/rainexample.capx?dl=0

Ok, I modified a capx I had to make it more like what you were asking for. Let me know if anything goes wrong.
B
8
Posts: 11
Reputation: 324

Post » Thu Jun 29, 2017 10:18 pm

Thank you so much, that's exactly how I wanted it! You're a legend for helping me out!
B
9
S
1
Posts: 26
Reputation: 731


Return to How do I....?

Who is online

Users browsing this forum: RetrocadeMedia and 1 guest