Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Light help
- Burnout5858
- Scratcher
100+ posts
Light help
The further away the clone is from your mouse pointer the darker it becomes. I don't get it.
Thanks
Thanks
Last edited by Burnout5858 (Nov. 3, 2014 18:40:02)
I should put something awesome here, but I won't.
- lederniersamourai
- Scratcher
500+ posts
Light help
The distance is 500 or less.
So, distance/5 will range from 0 to 100
And 0-distance/5 will range from 0 to -100
At -100 your sprite is black and at 0 it is normal.
So, distance/5 will range from 0 to 100
And 0-distance/5 will range from 0 to -100
At -100 your sprite is black and at 0 it is normal.
set [brightness v] effect to ((0) - ( (distance to [mouse-pointer v]) / (5)))
Last edited by lederniersamourai (Nov. 3, 2014 18:59:02)
- Burnout5858
- Scratcher
100+ posts
Light help
Sorry, I may of worded it wrong but I want to use ghost instead of brightness.
The script doesn't seem to work.
The script doesn't seem to work.
I should put something awesome here, but I won't.
- lederniersamourai
- Scratcher
500+ posts
Light help
Just remove 0-…
The farthest, the “ghostest”
The farthest, the “ghostest”
set [ghost v] effect to ( (distance to [mouse-pointer v]) / (5))
- Discussion Forums
- » Help with Scripts
- » Light help