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

2012/2/3

how can i change sprites in game on collision

1
2
Morran Morran

2012/2/10

#
Craigv, it looks like the "illegal start of expression" is because of a typo.
if (!=destroyed && getOneIntersectingObject(ball.class) != null) 
destroyed = true; 
should be
if (!destroyed && getOneIntersectingObject(ball.class) != null) 
destroyed = true; 
Don't use "!=destroyed", use "!destroyed".
Morran Morran

2012/2/10

#
Alternatively, you could use "detroyed != true".
craigv craigv

2012/2/16

#
yaaaaaaay! finally worked properly :D thanks for your help guys Craig
You need to login to post a reply.
1
2