How do random a item on a platform on a runner games

Get help using Construct 2

Post » Fri Oct 17, 2014 10:16 pm

hello

i created a infinite runner and i have a problems
i don't say to spawn random items on the plateform for the exemple file runner in construct 2

please help me

sorry for my english i speak english a little because i am frensh
B
3
Posts: 1
Reputation: 177

Post » Fri Oct 17, 2014 10:30 pm

@kalakala If I'm understanding, you're wanting to have random items spawn? You could do a "System > Every X seconds" with however many you want, or random, and then in that do a "System > Create object" with the x as random( smallest x, biggest x) and the same for y. Just make sure you check what range you'd like the items to appear in and put that in the parenthesis after random. Does that make sense?

Since you probably want it to always appear in front of your player, maybe you could do "player.X + random(10,100)" or something similar.
B
10
Posts: 28
Reputation: 401


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 21 guests