How do I spawn stuff under dynamic shadows

Get help using Construct 2

Post » Sat Jan 31, 2015 2:48 pm

Hi, I have a little fast paced rogue-like idea..

The enemies only spawn randomly under any dynamic cast shadows....

Now, how can I do this , I giveup : P
B
16
S
4
G
4
Posts: 179
Reputation: 4,688

Post » Sun Feb 01, 2015 1:42 am

Shadow > On created > Spawn Enemy
Image
B
75
S
23
G
3
Posts: 673
Reputation: 9,283

Post » Sun Feb 01, 2015 2:21 am

You can do,
Every X seconds -> Create enemy at X: random(Self.X - Self.Width/2,shadow.X + Self.Width/2) and Y: X: random(Self.Y - Self.Height/2,Self.X + Shadow.Height/2)
That will only spawn the enemy inside the boundaries of your shadow sprite.
That should be enough to get you started and you can expand from there.
B
33
S
8
G
2
Posts: 100
Reputation: 2,635


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 34 guests