Problem on game programming

Started by
1 comment, last by vs322 15 years, 8 months ago
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.
Advertisement
" 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.
Quote:Original post by Skateblind

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



use / or \\ if this is a c\c++...

This topic is closed to new replies.

Advertisement