• Advertisement
Sign in to follow this  

Problem on game programming

This topic is 3500 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
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.

Share this post


Link to post
Share on other sites
Quote:
Original post by Skateblind

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



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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement