How do you randomise button positions
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: How do you randomise button positions

  1. #1
    Senior Member
    Join Date
    Jul 2000
    Location
    London
    Posts
    240
    I was wondering how to randomise the positioning of buttons for a game for each time it is attempted.


    Thanks


  2. #2
    Don't Lick Jesus on a Stick whiteshadowx's Avatar
    Join Date
    Jun 2000
    Location
    Dallas
    Posts
    227
    Whta you'll have to do here is randomize placements of MC's, not buttons. Place your button(s) inside of a movie clip, and go from there:
    JIC:
    SetProperty(/nameofMC,_x) = Random(TOTALX)
    SetProperty(/nameofMC,_y) = Random(TOTALY)

Posting Permissions

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




Click Here to Expand Forum to Full Width


HTML5 Development Center

Poll by Flashkit.com