Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2008
    Posts
    182

    Random background images?

    Is it possible to have autoplay randomize background images for a page?

    Thanks

  2. #2
    Join Date
    Aug 2007
    Location
    Tampon, Reunion island
    Posts
    191

    Lightbulb Hello!

    Quote Originally Posted by ronwilliams View Post
    Is it possible to have autoplay randomize background images for a page?

    Thanks
    Here we go dude :

    Code:
    Imgs ={"sunset.jpg","sky.png","kid.jpg"}
    Random = Math.Random(1, Table.Count(Imgs));
    
    
    Image.Load("Wallpaper", "AutoPlay\\Images\\"..Imgs[Random]);
    Place all your images in your Autoplay Images folder and list them in the "Imgs" table. Put this code in "On Preload".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts