Jump to content


shrekboy1

Member Since 07 Jul 2010
Offline Last Active Aug 05 2011 01:56 PM

Posts I've Made

In Topic: file_text_write stuff

14 April 2011 - 08:04 AM


so im trying to update my game, specifically, the loading and creation of maps.
Im currently using a INI system for loading maps, but ive come to realize that having 30 maps in the same directory as the game gets very messy. And ive never, EVER, had success with the file_text_write functions. Ive tried, but i cant get it right.

What i want to happen, is having a small couple lines of code, that will...

1 - add a string at the end of the file
2 - add a line
3 - be able to repeat this process without overwriting ANYTHING

using this method, i can have my maps creation data all piled up and looking good.

shotz


You need codes for text files? If so:

1.
openfile = file_text_open_append('Maps\The map to load')
file_text_write_string(openfile,'THE STRING GOES HERE!')
file_text_close(openfile)

For the above code, you need to have a folder Maps in the directory of EXE!

2. Do you mean add an empty line?
file_text_writeln(openfile)


3. You can loops for that. If you open file using fil_text_open_append, then nothing will be overwrittenPosted Image


you are amazing. *gives cookie*
Btw, will opening the file with file_text_open_append() then writing a string, will the stirng be written at the end or the beginning of the file?

In Topic: Adding an event by code?

07 April 2011 - 10:08 AM

like the above guy...
object_event_add(objectId, eventType, eventSubtype, codestr)
so, in your case:
object_event_add(obj_XYZ, ev_step, ev_step_normal, 'hp+=5')

In Topic: MMORPG - Basic Network - 10000+ Downloads!

03 April 2011 - 10:58 AM

Wow, a good example. The 39DLL doesnt have the greatest tutorials, but this is amazing.
You deserve more recognition bro!

In Topic: Freestyle Parkour Physics

03 April 2011 - 10:46 AM

this is a really good engine! The movement is a bit fast, but the supplied creation variables made changing that easy. I definitely recommend this example to anyone wanting to make a fast paced platformer!
Great Job!

In Topic: Game Makers around the world...

30 March 2011 - 08:53 AM

GameMaker user rockin @ New Zealand!
Been Using since GM6!

EDIT:
My school's year 9 ICT programme (everyone has to do it) has game development classes, and they use game maker to teach!