PColik Posted October 23, 2011 Share Posted October 23, 2011 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? Quote Link to comment Share on other sites More sharing options...
korasoglu Posted October 23, 2011 Share Posted October 23, 2011 arkadaşım şu işini görmesi lazım Image.SetOpacity("Image5", 0) Image.Load("Image5", "AutoPlay\\Images\\yanlis.png"); Application.Sleep(300); Image.SetOpacity("Image5", 100) Quote Link to comment Share on other sites More sharing options...
KintaRo Posted October 24, 2011 Share Posted October 24, 2011 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] Quote Link to comment Share on other sites More sharing options...
PColik Posted October 24, 2011 Author Share Posted October 24, 2011 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. Quote Link to comment Share on other sites More sharing options...
MostWanted Posted October 24, 2011 Share Posted October 24, 2011 Button olarak kullacaksan button maker ile buton yapabilirsin istediğin resimleri. Quote Link to comment Share on other sites More sharing options...
PColik Posted October 24, 2011 Author Share Posted October 24, 2011 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 Quote Link to comment Share on other sites More sharing options...
exa_41 Posted October 24, 2011 Share Posted October 24, 2011 iki resım kulancaksın buton makerle kardesım bende yapmısdım ılk mesela facebook resmı dıyerı de facebook olcak ama degısık bır png ıkısını ayarlardan üstüne geldın mı veya tıkladın mı degıscek az kurcala çözersın Quote Link to comment Share on other sites More sharing options...
PColik Posted October 24, 2011 Author Share Posted October 24, 2011 kardeş sen anlamadın konuyu iyi oku bence. ben zaten snn anlattığın gibi buton yapmasını biliyorum. Quote Link to comment Share on other sites More sharing options...
KintaRo Posted October 25, 2011 Share Posted October 25, 2011 [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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.