Questo è lo script per il flashplayer che si avvia all'inizio di Rpg maker come posso fare in modo che quando spingo new game parta li il filmato in formato flash e non prima e soprattutto come posso fare per far in modo che il filmato si fermi ad un tot di frame?
Question
Frash
Questo è lo script per il flashplayer che si avvia all'inizio di Rpg maker come posso fare in modo che quando spingo new game parta li il filmato in formato flash e non prima e soprattutto come posso fare per far in modo che il filmato si fermi ad un tot di frame?
$library_dir=(Dir.pwd).concat("/malib") class Malib def playFlash(fileName) if(File.exist?((Dir.getwd).concat("/flash/").concat(fileName))) tempDir=(0.chr)*255 Win32API.new("kernel32", "GetTempPath", ['L', 'P'], 'L').call(254, tempDir) tempDir=tempDir.delete(0.chr) tempDir=tempDir.tr("\\", "/") filenum=1 tempFileDel=tempDir+"RMXPFS"+(filenum.to_s)+".maltmp" while(File.exist?(tempFileDel)) filenum+=1 tempFileDel=tempDir+"RMXPFS"+(filenum.to_s)+".maltmp" end#while createTempFile=File.new(tempFileDel, "w+") createTempFile.close myLibShell=$library_dir+"/RMXPFlash.exe "+fileName myLibShell+="malstrsplit"+tempFileDel Win32API.new("kernel32", "WinExec", ['P', 'L'], 'L').call(myLibShell, 1) flashWaitTimer=Thread.new do loop do if(File.exist?(tempFileDel)) Graphics.update sleep(0.75) else flashWaitTimer.sto end#if end#loop end#Thread end#if return end#def end#classEdited by UsernameLink to comment
Share on other sites
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now