OK, i'm using a video script that enables AVI files to be played, and I set it to play before the intro dialog box (Start / Load / Exit).
Problem is: there's a little transition when the intro dialog box opens, is there anyway to cut it off?
I made myself a transition and made it inside the very own AVI file, so I don't need the standard RMXP transition effect anymore.
Below lies the AVI Script.
OK, here's the original script that I found for the Menu system: http://www.rmxp.org/forums/showthread.php?t=22079
Now, the script for the AVI system I'll have to return where I found it (dunno where XD)
Now, questions:
1. Is it possible to make it like some games, to blink like a "Press SpaceBar Button"?
2. If not possible to do what the first question is about, can it be made by creating a GIF file as the intro picture file?
3. Can it be set to hit ESC to abort the game before entering the game's intro?
4. Is it possible to make a new option in the start menu, only available if the player has ended the game, like Chrono Trigger's "New Game +"?
5. A Manage Memory option, to delete or backup the saved files to another folder, like an PSX Memory Card?
Problem is: there's a little transition when the intro dialog box opens, is there anyway to cut it off?
I made myself a transition and made it inside the very own AVI file, so I don't need the standard RMXP transition effect anymore.
Below lies the AVI Script.
Class Scene_Movie
Class Main
Code:
class Scene_Movie
def initialize(movie)
@readini = Win32API.new 'kernel32', 'GetPrivateProfileStringA', %w(p p p p l p), 'l'
@movie_name = Dir.getwd()+"\\Movies\\"+movie+".avi"
main
end
def main
game_name = "\0" * 256
@readini.call('Game','Title','',game_name,255,".\\Game.ini")
game_name.delete!("\0")
@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
Graphics.update
sleep(1)
Graphics.update
sleep(1)
Graphics.update
sleep(1)
end
status = " " * 255
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
movie.call("status FILE mode",status,255,0)
true_status = status.unpack("aaaa")
if true_status.to_s != "play"
break
end
if Input.trigger?(Input::B)
Input.update
break
end
end
movie.call("close FILE",0,0,0)
bail
end
def bail
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)','')
Class Main
Code:
#==============================================================================
# ** Main
#------------------------------------------------------------------------------
# After defining each class, actual processing begins here.
#==============================================================================
begin
Font.default_name = "Tahoma"
# Prepare for transition
Graphics.freeze
# Make scene object (title screen)
$scene = Scene_Title.new
Scene_Movie.new("Developed_By")
Scene_Movie.new("Produced_By")
Scene_Movie.new("Intro Movie")
# Call main method as long as $scene is effective
while $scene != nil
$scene.main
end
# Fade out
Graphics.transition(20)
rescue Errno::ENOENT
# Supplement Errno::ENOENT exception
# If unable to open file, display message and end
filename = $!.message.sub("No such file or directory - ", "")
print("Unable to find file #{filename}.")
end
OK, here's the original script that I found for the Menu system: http://www.rmxp.org/forums/showthread.php?t=22079
Now, the script for the AVI system I'll have to return where I found it (dunno where XD)
Now, questions:
1. Is it possible to make it like some games, to blink like a "Press SpaceBar Button"?
2. If not possible to do what the first question is about, can it be made by creating a GIF file as the intro picture file?
3. Can it be set to hit ESC to abort the game before entering the game's intro?
4. Is it possible to make a new option in the start menu, only available if the player has ended the game, like Chrono Trigger's "New Game +"?
5. A Manage Memory option, to delete or backup the saved files to another folder, like an PSX Memory Card?