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

2019/4/1

Image Resizing Issue in Greenfoot

Biscuits1 Biscuits1

2019/4/1

#
Hello, I am trying to replace an image in the Green foot Little Crab game. I am trying to replace the crab class image with my own. My image shows up in the actor box but whenever I place a crab down it still remains a crab. Please let me know how to resolve it, thank you.
danpost danpost

2019/4/1

#
Biscuits1 wrote...
Hello, I am trying to replace an image in the Green foot Little Crab game. I am trying to replace the crab class image with my own. My image shows up in the actor box but whenever I place a crab down it still remains a crab. Please let me know how to resolve it, thank you.
Please show your Crab class codes.
Super_Hippo Super_Hippo

2019/4/3

#
The image in the "actor box" is only the default image. Inside the Crab class, there is code which sets the crab images to the crab (it alternates between two to make it look like moving). You can find the code by searching for "setImage" inside the class. Changing the default image doesn't change the code. It only changes the image if the image isn't set in the class code.
You need to login to post a reply.