Search found 5 matches
- Mon Jan 12, 2015 6:16 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Displaying Random Images
- Replies: 12
- Views: 6144
Re: Displaying Random Images
... set the name "/folder3/" & RNUM & ".png" to "PIKTURE" ... You should do yourself a big favour and work through the above mentioned stacks! I have started, thank you fro your help. I am also learning livecode at school. Some of the content i know and others i don't so i'm working through them no...
- Sun Jan 11, 2015 8:25 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Displaying Random Images
- Replies: 12
- Views: 6144
Re: Displaying Random Images
put random(50) into RNUM import paint from file "/folder3/" & RNUM & ".png" set the name of the last object to "PIKTURE" move img "PIKTURE" to 400,400 The other thing you can do is scale your image if it is too big to display in the stack. renaming the picture doesn't work, i tried: set the name "/...
- Sun Jan 11, 2015 7:56 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Displaying Random Images
- Replies: 12
- Views: 6144
Re: Displaying Random Images
Well, let's suppose your chosen folder [ in the example I have used a folder called "folder3" ] contains 50 images . . . and each one is named "1.png", "2.png", "3.png" and so on . . . then you can do something like this: put random(50) into RNUM import paint from file "/folder3/" & RNUM & ".png" i...
- Sun Jan 11, 2015 7:22 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Displaying Random Images
- Replies: 12
- Views: 6144
Re: Displaying Random Images
Hi Regan, welcome to the forum. You also could place an image object and set it's filename to a valid path to your folder. (look a "fileName" in the dictionary) For the random part go like Richmond said. The difference is that Richmond's method imports the image into the stack and will fill up the ...
- Sun Jan 11, 2015 5:03 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Displaying Random Images
- Replies: 12
- Views: 6144
Displaying Random Images
I'm making an application that when a percentage is reached an image appears. There are 4 different outcomes: <=70, >=71 and <95, >=95 and <100, and finally just 100. This percentage is created using random(100). I have 4 different folders, 1 folder for each outcome, with many different images in ea...