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

2021/5/3

Remove Object atWorldEdge()

Gallier Gallier

2021/5/3

#
Why this isn't working? public void pilzAmRandDerWelt() { if (atWorldEdge() { getWorld().removeObject(this); } }
RcCookie RcCookie

2021/5/3

#
There's a closing parenthesis ")" missing at the end of the if line
Gallier Gallier

2021/5/3

#
Oh yeah, but it still doesnt work
RcCookie RcCookie

2021/5/3

#
Yeah, the method is called "isAtEdge()", not "atWorldEdge()", unless you wrote that method.
Gallier Gallier

2021/5/3

#
I got it. I dont write it in the act() command :(
You need to login to post a reply.