Sign in to follow this  
patrickboss

Problem on game programming

Recommended Posts

Good evening.I start in game programming and i have a problem.I want to know something.THis is a line of code: Image image=Image("/transparent.png");{transparent is the name of my image} Does this means that the image is at the same place than the project?If my image is for example in my disk partition named 'D' how could i write that line of the code? Thanks for answering my question. Please excuse my english if it's mot perfect.

Share this post


Link to post
Share on other sites
" Image image=Image("/transparent.png");{transparent is the name of my image}
Does this means that the image is at the same place than the project? "

- Yes

If you want to use a file from your D drive, then this SHOULD work, but since I do not know what language your using I could be wrong, I presume it is C.

image=Image("D:\folder\transparent.png")

It is not really a question you needed to ask, trial and error would have been a lot quicker.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this