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

2017/12/21

help!

agray11202 agray11202

2017/12/21

#
is it possible to make an if statement when a certain object is touching a certain color???
Super_Hippo Super_Hippo

2017/12/21

#
What is the color? -- an actor in the world called color -- a pixel on the background image with this color -- a pixel on the image of an actor at the position of the object
danpost danpost

2017/12/22

#
agray11202 wrote...
is it possible to make an if statement when a certain object is touching a certain color???
Why not this:
if (touchingColor(<< parameters >>))
where 'touchingColor' returns a boolean value indicating the touching state. The parameters would be any information the method might need in order to make the determination on that state. So, the answer to your question is --- Yes. I really do not want to appear so blunt, vague or general about it; but usually, help can only be given in proportion to the amount of information provided.
You need to login to post a reply.