|
| 18 Oct 2015 03:45 PM |
it didn't work it went from 0 transparency to 1 without any fading idk why i couldn't solve a problem as simple as this
---
img = script.Parent.Parent --an imagelabel
for i = 1, 0, 0.1 do --go from 1 transparency to 0 in 0.1 increments img.ImageTransparency = i wait(0.1) end
|
|
|
| Report Abuse |
|
|
|
| 18 Oct 2015 03:49 PM |
img = script.Parent.Parent --an imagelabel
img.ImageTransparency = 0 wait(0.1) img.ImageTransparency = 0.1 wait(0.1) img.ImageTransparency = 0.2 wait(0.1) img.ImageTransparency = 0.3 wait(0.1) img.ImageTransparency = 0.4 wait(0.1) img.ImageTransparency = 0.5 wait(0.1) img.ImageTransparency = 0.6 wait(0.1) img.ImageTransparency = 0.7 wait(0.1) img.ImageTransparency = 0.8 wait(0.1) img.ImageTransparency = 0.9 wait(0.1) img.ImageTransparency = 1 wait(0.1) end
This is the quick way of doing it, and it should work. It may be longer, but it's a lot of easier to fix if it breaks. |
|
|
| Report Abuse |
|
|
|
| 18 Oct 2015 03:52 PM |
Oh god...
Just stop @above
You can't change the transparency of an image unless the image itself has transparent parts.
You have to put a black frame on top of it that fades from black or white or whatever color over the image.
Much love -GO |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 18 Oct 2015 03:58 PM |
for i = 1, 0, -0.1 do --go from 1 transparency to 0 in 0.1 increments img.ImageTransparency = i wait(0.1) end
u forgot to make it go negative |
|
|
| Report Abuse |
|
|
|
| 18 Oct 2015 03:58 PM |
Yeah, I just realized my mistake. I was think about parts, as i'm only a few weeks into RBXLua.
|
|
|
| Report Abuse |
|
|
|
| 18 Oct 2015 03:59 PM |
| u were adding transparency to it, not subtracting from it @interactivity |
|
|
| Report Abuse |
|
|
|
| 18 Oct 2015 04:03 PM |
| oh wow the silly mistakes i tend to make |
|
|
| Report Abuse |
|
|