This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
gusbus123
wrote ...
2012/7/30
Removing a letter from a String.
1
2
3
gusbus123
2012/8/1
#
^ i is = to null right now, but the pw.p1Left, pw.p1Right etc arnt = null. So i dno how i is becoming null.
davmac
2012/8/1
#
gusbus123, pw is null, so getWorld() is returning null. That happens when your actor isn't in the world (yet). My guess is that the code you posted gets called from the actor's constructor. You should probably call it from addedToWorld() instead.
gusbus123
2012/8/3
#
ok i fixed it now by creating the class with an emty string then it will recheck on the next act to add the word onto the image.
You need to login to post a reply.
1
2
3
X