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
EnderPicture
wrote ...
2015/1/3
Can you put images in folders in the images folder?
EnderPicture
2015/1/3
#
I was trying to organize my game's image assets inside folders, but I cant access them after. Is there a way to access them in side folder?
davmac
2015/1/3
#
Can you say specifically what you mean by 'access'? (how are you trying to access them?)
EnderPicture
2015/1/3
#
I am trying to access assets images by using setImage()
davmac
2015/1/3
#
Then it should work fine. You need to put the relative path to the image. If the image is called 'a.jpg' and is in folder 'abc' inside the images folder, then you name it as 'abc/a.jpg', eg:
?
1
setImage(
"abc/a.jpg"
);
You need to login to post a reply.
X