the error that the image file does not exist so can you help meeeeeeee
oh and the error states that it cannot set breakpoint:no code in this line
and yes this is a fnf fan game
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class BOYFREIND here. * * @author (your name) * @version (a version number or a date) */ public class BOYFREIND extends Actor { private int vSpeed= 0 ; private int acceleration= 2 ; private GreenfootImage BOYFRIEND_Copy05= new GreenfootImage( "BOYFRIEND_Copy05.png" ); private GreenfootImage BOYFRIEND_Copy05_Copy= new GreenfootImage( "BOYFRIEND_Copy05_Copy.png" ); private GreenfootImage BOYFRIEND_Copy05_Copy01= new GreenfootImage( "BOYFRIEND_Copy05_Copy01.png" ); private GreenfootImage BOYFRIEND_Copy06= new GreenfootImage( "BOYFRIEND_Copy06.png" ); private GreenfootImage BOYFRIEND_Copy07= new GreenfootImage( "BOYFRIEND_Copy07.png" ); private GreenfootImage BOYFRIEND_Copy03= new GreenfootImage( "BOYFRIEND_Copy03.png" ); private GreenfootImage BOYFRIEND_Copy04= new GreenfootImage( "BOYFRIEND_Copy04.png" ); private GreenfootImage BOYFRIEND = new GreenfootImage( "BOYFRIEND.png" ); private GreenfootImage BOYFRIEND_Copy= new GreenfootImage( "BOYFRIEND_Copy.png" ); private GreenfootImage BOYFRIEND_Copy01= new GreenfootImage( "BOYFRIEND_Copy01.png" ); private GreenfootImage BOYFRIEND_Copy02= new GreenfootImage( "BOYFRIEND_Copy02.png" ); private GreenfootImage BOYFRIEND_Copy02_copy= new GreenfootImage( "BOYFRIEND_Copy02_Copy.png" ); private int frame = 1 ; /** * Act - do whatever the BOYFREIND wants to do. This method is called whenever * the 'Act' or 'Run' button gets pressed in the environment. */ public void act() { checkKey (); // Add your action code here. } public void AnimateLeft() { if (frame== 1 ) { setImage( "BOYFRIEND_Copy03" ); } else if (frame == 2 ) { setImage( "BOYFRIEND_Copy04" ); frame= 1 ; return ; } frame ++; } public void AnimateRight() { if (frame== 1 ) { setImage( "BOYFRIEND_Copy05" ); } else if (frame== 2 ) { setImage( "BOYFRIEND_Copy05_Copy" ); frame = 1 ; return ; } frame ++; } public void checkKey() { if (Greenfoot.isKeyDown( "right" )) { AnimateRight(); } if (Greenfoot.isKeyDown( "left" )) { AnimateLeft(); } } } |