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
Gallier
wrote ...
2021/5/3
Remove Object atWorldEdge()
Gallier
2021/5/3
#
Why this isn't working? public void pilzAmRandDerWelt() { if (atWorldEdge() { getWorld().removeObject(this); } }
RcCookie
2021/5/3
#
There's a closing parenthesis ")" missing at the end of the if line
Gallier
2021/5/3
#
Oh yeah, but it still doesnt work
RcCookie
2021/5/3
#
Yeah, the method is called "isAtEdge()", not "atWorldEdge()", unless you wrote that method.
Gallier
2021/5/3
#
I got it. I dont write it in the act() command :(
You need to login to post a reply.
X