How do I Spawn Objects?

Get help using Construct 2

Post » Wed Jun 24, 2015 11:55 pm

How do I make to spawn an object in a randomic place of the screen, without it been spawned in the place that already have an object? for example, if it spawn in the same X,Y of the ground the player will not be able to catch it, and I want that the player be able to catch it aways.
You know nothing, Jon Snow
B
10
S
2
G
1
Posts: 53
Reputation: 766

Post » Thu Jun 25, 2015 6:55 am

Go to system events and use "Create Object" instead of spawn
B
17
S
7
Posts: 280
Reputation: 2,522

Post » Thu Jun 25, 2015 12:20 pm

RayKi wrote:Go to system events and use "Create Object" instead of spawn


I'm new here, how do I put to the X,Y of the object that will create be Random.
You know nothing, Jon Snow
B
10
S
2
G
1
Posts: 53
Reputation: 766

Post » Thu Jun 25, 2015 12:37 pm

X random(0,2000)
Y random(0,2000)

if your layout was 2000,2000 that would be a random place on your layout
B
22
S
6
G
2
Posts: 30
Reputation: 1,879

Post » Thu Jun 25, 2015 4:10 pm

higher2003 wrote:X random(0,2000)
Y random(0,2000)

if your layout was 2000,2000 that would be a random place on your layout



Thank you guy. :D
You know nothing, Jon Snow
B
10
S
2
G
1
Posts: 53
Reputation: 766


Return to How do I....?

Who is online

Users browsing this forum: Construct Monkey, dop2000 and 10 guests