how would i make a cutscene at the end of my game that would, once done, would stop the game
private boolean notImage0 = false; private GifImage gif = new GifImage("cutscene.mp3"); public CutScene extends World { super(600, 400, 1); setImage(gif.getCurrentImage()); } public void act() { GreenfootImage img = gif.getCurrentImage(); if (img == gif.getImages().get(0)) == notImage0) // a change in image involving the first image has occurred { notImage0 = ! notImage0; if ( ! notImage0) { Greenfoot.stop(); return; } } setImage(img); }