Jump to content

Bir Resimin Opacity İle Değiştirilmesi


PColik
 Share

Recommended Posts

arkadaşlar ben bir resimin üzerine geldiğimde (On Enter) kısmına bir kod yazacağım image.load komutu ile o resimin değiştirilmesini istiyorum. fakat image.load komutu kullanırsam resimin üzerine gelir gelmez resim değişiyor. fakat bu resim değişirken bir opaklık veya transparanlık geçişi ile değiştirilmesini istiyorum. umarım anlatabilmişimdir. bunu nasıl yaparım?
Link to comment
Share on other sites

Eğer resim sadece 1 seferliğine değişecekse şu şekilde yapın:

Global Functions:

[code]nKontrol = 0;[/code]
Image> On Enter:

[codebox]if nKontrol == 0 then
for i=1,100 do
Image.SetOpacity(this, 100-i)
end
Image.SetProperties(this, {ImageFile="Autoplay\\Images\\2.jpg"})
for i=1,100 do
Image.SetOpacity(this, i)
end
nKontrol = 1
end[/codebox]

Link to comment
Share on other sites

hayır. anlayın yani, ben resimi buton olarak kullanacağım. yani resimin üç hali olacak. eğer böyle birşey imkansız ise resmin 2 halide olur.

To korasoglu: kardeş verdiğin kod çalışmadı.
To KintaRo: kardeş verdiğin kod çalıştı fakat 2.jpg yazan yeri 1.jpg yapıp on leave kısmına yazdım. resmin üzerinden imleci çekince önceki resim geri gelmedi.

Link to comment
Share on other sites

onu biliyorum. zaten yaptığım butonların sayısını unuttum. ama buton maker ile yapılan butonların üzerine gelince butonun ikinci hali bir fade in efektiyle açılmıyor. bende bunu resimler yapmaya çalışıyorum. kullandığım resimlerin uzantısıda *.png

Link to comment
Share on other sites

[b]Image On Enter:
[/b]
[quote]for i=1,100 do
Image.SetOpacity(this, 100-i)
end
Image.SetProperties(this, {ImageFile="Autoplay\\Images\\2.PNG", Opacity=100})[/quote]

[b]Image On Leave:
[/b]
[quote]for i=1,100 do
Image.SetOpacity(this, 100-i)
end
Image.SetProperties(this, {ImageFile="Autoplay\\Images\\1.PNG", Opacity=100})[/quote]

[b]Image On Click:
[/b]
ee onuda mantık yürüterek bulun.

[b]Global Functions:
[/b]
buraya birşey yazmanıza gerek yok.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...