Jump to content


Random Images


  • Please log in to reply
1 reply to this topic

#1 BVH

BVH

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 22 May 2011 - 05:30 AM

I am making a hidden objects game. i don't know how to get the program to randomly place multiple objects on the screen. i will also need it to choose random backgrounds. how do i do random for multiple images so that it places them randomly on the screen?

#2 Kraicheck

Kraicheck

    Advanced Member

  • Members
  • PipPipPip
  • 884 posts
  • Gender:Male
  • Location:Belgium

Posted 25 May 2011 - 11:28 AM

Use the Util.Random class to generate random x and y values for the location.