How do I display randomly pictures

Get help using Construct 2

Post » Thu May 21, 2015 11:46 pm

Hello,

Let's imagine I have 100 pictures. I have a random function, and depending the result of round (random(100)), I display a certain picture.

Is it possible to do that with Construct 2 ?

Regards,
B
7
S
1
Posts: 13
Reputation: 460

Post » Fri May 22, 2015 12:53 am

the way I would do that is to load up each picture as a frame to the sprite and assign it to pick the frame off of the random number rounded.
B
40
S
11
G
7
Posts: 514
Reputation: 9,646

Post » Fri May 22, 2015 8:35 am

Hello Sosensible,
Thank you so much ! I will give it a a try !!
Have a good day !!
B
7
S
1
Posts: 13
Reputation: 460

Post » Sun May 24, 2015 10:02 pm

make sure the animations speed is zero or it might cycle through the frames starting with the one you picked.
B
40
S
11
G
7
Posts: 514
Reputation: 9,646


Return to How do I....?

Who is online

Users browsing this forum: marcinkowski and 11 guests