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

2013/1/13

i want to add a new counter

1
2
vonmeth vonmeth

2013/1/13

#
You forgot the (). Remember you are calling a method that returns a value, not directly getting a variable from your counter.
if (simpleCounter.getValue() == 0);  
        {  
            Greenfoot.stop();  
        }
ctgreenfoot ctgreenfoot

2013/1/13

#
now the scenario wont run! as soon as it starts it stops!
danpost danpost

2013/1/13

#
Move the four lines of code above inside the previous bracketed area (OR: move the closing bracket at line 55 to line 60).
You need to login to post a reply.
1
2