Random()

Out of context: Reply #7

  • Started
  • Last post
  • 8 Responses
  • armed_rob0

    create a movieclip call it mc in the "Instance Name" field.

    Db. click to edit the movieclip, do 3 keyframes - or how many you like - with stop actions. Call them "start1", "start2" and "start3" in the "Frame Label" field and put your shit in on the different keyframes (maybe as movieclips)

    paste the code into a frame in the main scene:

    mc.gotoAndPlay("star t"+(random(3)+1));

    if you make more than 3 keyframes it just looks like this:

    mc.gotoAndPlay("star t"+(random(999999)+1));

View thread