Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: using math to establish relationship between Y coords and scale?
From: Kurt Dommermuth
Date: Mon, 31 Jul 2000 23:14:30 +0100

Axel,

Thank you very much!!

Why can't I think like this?

Anyway, in case anyone is following this, I had to make minor adjustments
to your suggestion...

Set Variable: "randomY" = Random (35) + 125
Set Variable: "Scale" = int ((randomY-125) * 80/35 + 20 )

as opposed to way you had written it...

"randomY" = random(35) + 125
"scale" = int (( (random-125) * 80/35 + 20 ) * 100

Again, thank-you!

Kurt
http://www.dommermuth-1.com

>in other words you need random y between 125 and 160 and related scale
>between 20 and 100 (or between 0 and 80 plus 20)
>for clearity:
>
>make it that way:
>"random" = random(35)
>"randomY" = random + 125
>"scale" = int (( random * 80/35 + 20 ) * 100
>
>80 = 100 - 20 and it is max related to max random 35 -> 80/35
>
>you can also do that way
>"randomY" = random(35) + 125
>"scale" = int (( (random-125) * 80/35 + 20 ) * 100
>
>axel


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Full flasher archive now available online at:
http://www.chinwag.com/flasher/archive.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: loop script, Brack, Jeremy
  FLASH: using math to establish relations, Kurt Dommermuth
  Odp: FLASH: using math to establish rela, axel

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]