This site requires JavaScript, please enable it in your browser!
Greenfoot back
AD12

AD12

Welcome to my page

AD12's scenarios

This user has not made any scenarios.

AD12's collections

This user has no collections

Recent Comments | Show All

i managed to create the bar with the method updateImage() but i cant return the field, the value (that shows how much the bar should get filled) is in. in class1 i got public int getValue1() { return Value1; } and in class 2 i create an object of class1 and try to get the value: public void act() { class1 cl= new class1(); Value = cl.getValue1(); } it works when i write "return Value1 = 10;" but it doesnt return the field? btw is my programm really slow and doesn't work roundly, could it be a problem of my code?
Ok Thank you. And what exactly is this field to hold the value? Its no image right!? btw: my Ship (Ship.class) creates the Shots.. (Shot.class) if i adjust the barvalue in the ShotBar (ShotBar.class), how can i return the value into my Ship class, to stop shooting?