generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: i tried to make an image that fades in

Previous Thread :: Next Thread 
Interactivity is not online. Interactivity
Joined: 03 Dec 2011
Total Posts: 23738
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
mircostaff is not online. mircostaff
Joined: 28 Sep 2012
Total Posts: 288
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
GreatOculus is not online. GreatOculus
Joined: 30 Aug 2009
Total Posts: 2103
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 is not online. 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
mircostaff is not online. mircostaff
Joined: 28 Sep 2012
Total Posts: 288
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
unwarranted is not online. unwarranted
Joined: 05 Jun 2009
Total Posts: 1087
18 Oct 2015 03:59 PM
u were adding transparency to it, not subtracting from it @interactivity
Report Abuse
Interactivity is not online. Interactivity
Joined: 03 Dec 2011
Total Posts: 23738
18 Oct 2015 04:03 PM
oh wow the silly mistakes i tend to make
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image