In my case , I have coins that the user collects. I want to be able to, when the user collects a coin, it's place to be replaced by a grass sprite. This is represented by the char "g" in the map .txt...
Type: Posts; User: sakonpure6
In my case , I have coins that the user collects. I want to be able to, when the user collects a coin, it's place to be replaced by a grass sprite. This is represented by the char "g" in the map .txt...
I know how to read entire lines of text from , column by column (is there a way to copy the text char by char?) . But I do not know how to delete all the useless data in the same .txt file.
In accordance with post #7 , I want this to be written in the same file.
okay for example :
how would you do it with this ?
My "Map.tx" has the following:
(Each Line 22 char long)
and you see where there is a "c", in my code if my char touches it, I want to replace it with a "g" which stands for grass. Therefore...
Great so lets say I copied all the old code, how do I get rid of the new one in the Map.txt file?
Let's say I have a text file with multiple lines of text. When I read the file and want to write to it, how can I add my text to the top of the file, rather than the bottom (after the original lines...