Random Images

Discussion and feedback on Construct 2

Post » Sun Sep 16, 2012 7:59 pm

I wanna show random images on a button clip in my game. Any Help?

I have sprite objects with images and wanna display them on the button click. How should I do it?
B
5
Posts: 18
Reputation: 536

Post » Sun Sep 16, 2012 11:00 pm

you can load each image into frame and randomly generate number on button click and load frame that has selected number.

see file for demo
https://www.box.com/s/w938y0zspne5asrjafxm

(I'm not sure if same number preventing block works correctly though, too sleepy to test correctly)hellwalker2012-09-16 23:03:48
B
24
S
7
G
3
Posts: 138
Reputation: 2,795

Post » Mon Sep 17, 2012 9:30 am

hey thanks for the example man, Ill now download it and try :)
B
5
Posts: 18
Reputation: 536

Post » Mon Sep 17, 2012 1:52 pm

sure no prob
I think i fixed issue with same pic in random, new example
https://www.box.com/s/w938y0zspne5asrjafxmhellwalker2012-09-17 13:52:46
B
24
S
7
G
3
Posts: 138
Reputation: 2,795


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 9 guests