Create object between 2 created blocks.

Get help using Construct 2

Post » Mon Jan 23, 2017 8:38 pm

I've tried by setting the block X value at - "random(20,340)*(loopindex+1)"

This does sort of work, i'm not sure if its the best way. Is there a better way of doing that?


Again, that depends on how you want it to look in the end.
If you just want it to spawn at a random x position, you can simply set X to "random(0,WindowWidth)".
If you want to spawn the object in the current pattern, but offset by a random amount, add a " + random(-25,25)".
This will offset the X coordinate by something between -25 and 25.
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

Post » Tue Jan 24, 2017 1:05 pm

The offset X coordinate seems to work a lot better, i can work with this.

Thanks so much for your help, appriciate it.
B
4
S
2
Posts: 111
Reputation: 830

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests