How do I Pick to screen positions at Random

Just started using Construct 2? Post your questions here

Post » Sun Jun 08, 2014 10:50 am

Hi
I have 2 screen positions
position 1 : x = 200, y = 500
position 2 : x = 400, y= 300

When I create an object how can I set it to pick either position 1 or 2 at random.

Many thanks

Steve
B
6
S
1
Posts: 18
Reputation: 342

Post » Sun Jun 08, 2014 11:01 pm

Make a local variable ,,,,position , then a action position = choose(1,2) , then two sub events;

if position =1...>create object (200,500)
if position =2...>create object (400,300)
What I know would fill a Book , what I don't know would fill a Library
B
37
S
12
G
29
Posts: 331
Reputation: 16,499

Post » Mon Jun 09, 2014 7:01 am

Thats great thank you
B
6
S
1
Posts: 18
Reputation: 342


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests