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

2013/3/27

This simple thing just won't work..

1
2
Wescorn Wescorn

2013/3/27

#
ups
-nic- -nic-

2013/3/27

#
also change the if statement to
if(getOneIntersectingObject(House.class)!=null)  
{

}
I got the ==null wrong it should be !=null
Wescorn Wescorn

2013/3/27

#
says this when.. Bad operand type Greenfoot.actor for unary operator '!'
            if(!getOneIntersectingObject(House.class)==null)  
            {
               grainStored = grainCollected + grainStored;
               grainCollected = 0;
            }
Wescorn Wescorn

2013/3/27

#
oh
-nic- -nic-

2013/3/27

#
its okay that was my fault
Wescorn Wescorn

2013/3/27

#
Still says Bad operand type greenfoot.Actor for unary operator '!' if(!getOneIntersectingObject(House.class)!=null) { grainStored = grainCollected + grainStored; grainCollected = 0; }
-nic- -nic-

2013/3/27

#
get rid of the first !
Wescorn Wescorn

2013/3/27

#
compiles, but problem still not fixed
JetLennit JetLennit

2013/3/27

#
I have been having a similar problem with something else... i could kinda fix a client side one of the bug... and could fix a full one just the storage would accumulate through all the users instead of a new storage every time
Wescorn Wescorn

2013/3/27

#
I fixed it. It was a } in the wrong place, thx for trying to help tho c:
-nic- -nic-

2013/3/27

#
cool
JetLennit JetLennit

2013/3/27

#
i thought it was something else.......... oh well, im glad it worked!
You need to login to post a reply.
1
2