Randomly spawn objects SOLVED

Get help using Construct 2

Post » Thu Sep 20, 2012 11:48 pm

How do i Randomly spawn objects only on window screen (even if layout is big)delgado2012-09-23 20:08:13
B
103
S
25
G
40
Posts: 1,876
Reputation: 31,885

Post » Fri Sep 21, 2012 12:00 am

create object
x: random(ViewportLeft(layer),ViewportRight(layer))
y: random(ViewportTop(layer),ViewportBottom(layer))              
ImageImageImageImage
B
155
S
61
G
41
Posts: 2,577
Reputation: 34,314

Post » Fri Sep 21, 2012 12:31 am

hi @shinkan what i should type in " (layer) "?
B
103
S
25
G
40
Posts: 1,876
Reputation: 31,885

Post » Fri Sep 21, 2012 12:32 am

layer name or number
ImageImageImageImage
B
155
S
61
G
41
Posts: 2,577
Reputation: 34,314


Return to How do I....?

Who is online

Users browsing this forum: Congrats2u, JoshVillaluz, OddConfection, RetroSpock, TheGreatAdam12 and 10 guests