This site requires JavaScript, please enable it in your browser!
Greenfoot back
actinium
actinium wrote ...

2014/12/31

Image not changing

actinium actinium

2014/12/31

#
public GreenfootImage sn;
    
    public void Snow(){
        sn = new GreenfootImage(15,15);
        sn.setColor(Color.RED);
        sn.fill();
        setImage(sn);
    }
Am I missing something in this constructor. The Image is not changing to the Image in serImage(sn). Im a bit rusty at the moment.
danpost danpost

2014/12/31

#
That is not a constructor -- maybe you meant 'public Snow()' which would make it one.
actinium actinium

2014/12/31

#
Lol, stupid me, how did I not notice that void. Cheers danpost time for bed me thinks.
You need to login to post a reply.