Tìnhyêu36kế
C O N T R A
- 22/11/05
- 1,653
- 48
cho em hỏi cái scripts của VoDich
Làm sao để movie chạy lên ở chế độ toàn màn hình, chức movie chạy cứ ở phía góc trái màn hình tức quá hà! X(>VoDich< nói:#begin
class Scene_Movie
def initialize(movie,length)
@movie_name = Dir.getwd()+"\\Movies\\"+movie+".mpg" # trong đó Movies là folder chứa file phim, phải ở cùng với folder chứa game, ".mpg" là lọai file phim( có thể thay đổi tùy bạn)
@counter = length
end
def main
Graphics.transition
@wnd = Win32API.new('user32','FindWindowEx','%w(l,l,p,p)' ,'L')
@temp = @wnd.call(0,0,nil,"MovieTest").to_s # MovieTest thay bằng tên game của bạn (hiển thị trên Title bar khi run game)
$game_actors[1].name = @temp.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)
@movie.call("play FILE",0,0,0)
loop do
Graphics.update
sleep(1)
Input.update
if Input.trigger?(Input::B)
break
end
@counter = @counter - 1
if @counter == 0
break
end
end
@movie.call("close FILE",0,0,0)
$scene = Scene_Map.new
Graphics.freeze
end
end
#end
, nhưng cái này xấu quá , nhưng lại đc bù đắp bao nhiêu thứ quý