Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Cheat Engine Lua : Animation fade image to other

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
NoobesGT
Cheater
Reputation: 0

Joined: 17 Dec 2018
Posts: 36

PostPosted: Thu Jan 03, 2019 2:49 pm    Post subject: Cheat Engine Lua : Animation fade image to other Reply with quote

I want to make an timer and adding to table some .gif files then to fade an image to other like +1 and +1 and +1 like an video but with many frames
_________________
I hope you will know next time 1337
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater
Reputation: 23

Joined: 10 Apr 2015
Posts: 732

PostPosted: Thu Jan 03, 2019 7:34 pm    Post subject: Reply with quote

https://www.cheatengine.org/forum/viewtopic.php?t=606206&sid=03df459b9befffbd5095230ea0340505


and this is my own :


Code:
mForm = createForm()
mForm.width = 250
mForm.height = 300
mForm.BorderStyle = 'bsNone'

mForm.OnMouseDown = function() mForm.DragNow() end

mLabel = createLabel(mForm)
mLabel.left = 40
mLabel.top = 5
mLabel.caption = 'Double Click To Close Trainer'

mImage = createImage(mForm)
mImage.width = mForm.width
mImage.top = 30
mImage.height = 290
mImage.strecth = true



t = {}
t[1] = 'frame_00_delay-0.2s.gif'
t[2] = 'frame_01_delay-0.2s.gif'
t[3] = 'frame_02_delay-0.2s.gif'
t[4] = 'frame_03_delay-0.2s.gif'
t[5] = 'frame_04_delay-0.2s.gif'
t[6] = 'frame_05_delay-0.2s.gif'
t[7] = 'frame_06_delay-0.2s.gif'
t[8] = 'frame_07_delay-0.2s.gif'
t[9] = 'frame_08_delay-0.2s.gif'
t[10] = 'frame_09_delay-0.2s.gif'
t[11] = 'frame_10_delay-0.2s.gif'
t[12] = 'frame_11_delay-0.2s.gif'
t[13] = 'frame_12_delay-0.2s.gif'
t[14] = 'frame_13_delay-0.2s.gif'
t[15] = 'frame_14_delay-0.2s.gif'
t[16] = 'frame_15_delay-0.2s.gif'
t[17] = 'frame_16_delay-0.2s.gif'
t[18] = 'frame_17_delay-0.2s.gif'
t[19] = 'frame_18_delay-0.2s.gif'
t[20] = 'frame_19_delay-0.2s.gif'
t[21] = 'frame_20_delay-0.2s.gif'
t[22] = 'frame_21_delay-0.2s.gif'
t[23] = 'frame_22_delay-0.2s.gif'
t[24] = 'frame_23_delay-0.2s.gif'
t[25] = 'frame_24_delay-0.2s.gif'
t[26] = 'frame_25_delay-0.2s.gif'
t[27] = 'frame_26_delay-0.2s.gif'
t[28] = 'frame_27_delay-0.2s.gif'
t[29] = 'frame_28_delay-0.2s.gif'
t[30] = 'frame_29_delay-0.2s.gif'

pics={}
for i=1,8 do
  pics[i]=createPicture()
  pics[i].loadFromStream(findTableFile(t[i]).Stream)
end

pics.currentPicture=1

timer=createTimer(f, false)
timer.Interval= 200
timer.OnTimer=function(timer)
  mImage.Picture=pics[pics.currentPicture] --same as img.Picture.assign(pics[pics.currentPicture])
  pics.currentPicture=(pics.currentPicture % 8)+1
end
timer.Enabled=true

function exiter()
 closeCE();
 return caFree
end

mForm.onDblClick = exiter
mForm.show()



Capture.JPG
 Description:
 Filesize:  25.48 KB
 Viewed:  349 Time(s)

Capture.JPG



_________________
Singapore Sling + Johnnie Walker + Some Peanuts....
Back to top
View user's profile Send private message
NoobesGT
Cheater
Reputation: 0

Joined: 17 Dec 2018
Posts: 36

PostPosted: Fri Jan 04, 2019 3:21 am    Post subject: Reply with quote

THANKS!
_________________
I hope you will know next time 1337
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites