A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Creating Random Effects...

  1. #1
    Junior Member
    Join Date
    Mar 2002
    Posts
    5
    I use swish v.2.0 and was wondering how to create random probabilities?

  2. #2
    UNified
    Join Date
    Mar 2001
    Location
    Montville QLD
    Posts
    6,161
    Hi there Golden, welcome to Swish Help forum

    Swish currently has no ability to generate true randomness.
    You can fake it however a repeat pattern will eventually kick in.

    So it does depend on how random you want things to be.

    Jofta

  3. #3
    Junior Member
    Join Date
    Mar 2002
    Posts
    5
    ah okay, thanx

  4. #4
    Chief of Molecules wcoleman's Avatar
    Join Date
    Nov 2000
    Location
    Massachusetts
    Posts
    3,975
    My footer has one approach to these not quote random events - the swi is at http://www.wellesley.edu/Chemistry/F...chicfooter.swi - here a swish is running constantly and each frame, if the sprite is rolled over during that frame, chooses from among a set of 14 subsprites and displays a particular message. Assuming that the use has no pattern in the timing between rollovers there should be an even distribution of the various panels chosen (to be mathematically correct this will only be true if the time from one roll over to the next is several times the duration of the controller sprite, which is a little over a second).

    Cheers,

    Flick


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