 | またまたお世話になります 新しいのを早速サクサクと作っていたのですが 最後の最後で エンディングという難題が出てきました なぜかエンディングの前に別のエンディングが少しだけ流れ おかしな風になってしまいました。 エンディングにつながるフラグ (catにおもちゃ○○を渡したらエンディングと考えてくださればわかりやすいと思います) を書いときます on (release){ if (_root.select_item == "home"&&_root.item_state_home == 4){ _root.gotoAndPlay("HAPPYEND2"); }else{ if (_root.open_locker == false){ _root.message = "睡眠薬で寝てるw"; _root.message_window.gotoAndPlay("message"); }else{ _root.message = "カギが開いているみたいだ"; _root.message_window.gotoAndPlay("message"); } } } - on (release){ if (_root.select_item == "home"&&_root.item_state_home ==2){ _root.gotoAndPlay("HAPPYEND"); }else{ if (_root.open_locker == false){ _root.message = "睡眠薬で寝てるw"; _root.message_window.gotoAndPlay("message"); }else{ _root.message = "カギが開いているみたいだ"; _root.message_window.gotoAndPlay("message"); } } } - on (release){ if (_root.select_item == "home"&&_root.item_state_home ==3){ _root.gotoAndPlay("BADEND2"); }else{ if (_root.open_locker == false){ _root.message = "睡眠薬で寝てるw"; _root.message_window.gotoAndPlay("message"); }else{ _root.message = "カギが開いているみたいだ"; _root.message_window.gotoAndPlay("message"); } } } |