Register | Login | |||||
Main
| Memberlist
| Active users
| ACS
| Commons
| Calendar
| Online users Ranks | FAQ | Color Chart | Photo album | IRC Chat |
| |
0 user currently in Game Creation Center. | 1 guest |
Acmlm's Board - I2 Archive - Game Creation Center - RGSS? | | | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
User | Post | ||
jedijapan Newcomer Level: 4 Posts: 2/8 EXP: 239 For next: 40 Since: 07-13-05 Since last post: 106 days Last activity: 95 days |
| ||
whats that. sorry im asking Q's but i have to. i heard you cold play avi. on it. | |||
Chris Boo Level: 46 Posts: 581/922 EXP: 663200 For next: 48574 Since: 04-20-04 Since last post: 7 hours Last activity: 4 hours |
| ||
RGSS scripts? They're scripts; they are used only on RPG Maker XP, I think. I'm sure others know more about it. I just know that they're scripts... (edited by Chris on 07-12-05 07:01 PM) (edited by Chris on 07-12-05 07:06 PM) (edited by Chris on 07-13-05 11:43 PM) |
|||
Sokarhacd Ball and Chain Trooper Resistance is Futile You Will Be Assimilated Hab SoSlI' Quch Level: 61 Posts: 1467/1757 EXP: 1799888 For next: 76708 Since: 03-15-04 Since last post: 6 days Last activity: 4 hours |
| ||
class Scene_Movie def initialize(movie,length,exit_to_game=true) @readini = Win32API.new 'kernel32', 'GetPrivateProfileStringA', %w(p p p p l p), 'l' @movie_name = Dir.getwd()+"\\Movies\\"+movie+".avi" @counter = length*10 @exit_to_game = exit_to_game main end def main game_name = "\0" * 256 @readini.call('Game','Title','',game_name,255,".\\Game.ini") game_name.delete!("\0") Graphics.transition @wnd = Win32API.new('user32','FindWindowEx','%w(l,l,p,p)','L') @temp = @wnd.call(0,0,nil,game_name).to_s @movie = Win32API.new('winmm','mciSendString','%w(p,p,l,l)','V') @movie.call("open \""+@movie_name+"\" alias FILE style 1073741824 parent " + @temp.to_s,0,0,0) @message = Win32API.new('user32','SendMessage','%w(l,l,l,l)','V') @detector = Win32API.new('user32','GetSystemMetrics','%w(l)','L') @width = @detector.call(0) if @width == 640 fullscreen Screen::update sleep(1) Screen::update sleep(1) Screen::update sleep(1) end @movie.call("play FILE",0,0,0) loop do sleep(0.1) @message.call(@temp.to_i,11,0,0) Graphics.update @message.call(@temp.to_i,11,1,0) Input.update if Input.trigger?(Input::B) Input.update break end @counter = @counter - 1 if @counter <= 0 break end end @movie.call("close FILE",0,0,0) if @exit_to_game $scene = Scene_Map.new else $scene = nil end Graphics.freeze if @width == 640 fullscreen end end end def fullscreen() $full.call(18,0,0,0) $full.call(13,0,0,0) $full.call(18,0,2,0) $full.call(13,0,2,0) end $full = Win32API.new('user32','keybd_event','%w(l,l,l,l)','') copy that into a new script, then put your movies in yourgame\movies and Then call "$scene = Scene_Movie.new(filename,length)" where filename is your movies actual filename (minus the .avi) and length is the playtime in seconds. |
|||
jedijapan Newcomer Level: 4 Posts: 3/8 EXP: 239 For next: 40 Since: 07-13-05 Since last post: 106 days Last activity: 95 days |
| ||
thanks |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
Acmlm's Board - I2 Archive - Game Creation Center - RGSS? | | | |