지금 스크립트 짜는거 배우고 있습니다만 어렵네요;; ㅋㅋ;;
이거 타이틀 전에 사진 띄우는거 만들었는데요
뭐가 잘못된건지 오류는 안뜨고 그냥 바로 타이틀로 가더군요..
왜 그런가요?
$scene = Scene_Title.new
def Title_picture
@picture = picture.new
@picture.bitmap(640,480)
pic = RPG::cache.picture("test.png")
@picture.bitmap.blt(0, 0, pic, Rect.new(0, 0, pic.width, pic.height))
end
$scene = Scene_Title.new
@picture = Sprite.new
@picture.bitmap = RPG::cache.picture("test.png")
정도 됩니다만 def Title_picture은 Title_picture이라는 메서드를 정의해줄뿐 적는다고 그림이 띄워지지 않습니다.이 메서드를 호출해야 메서드에 정의된 내용이 실행되죠.