Pulling out player's position per second in game maker -


coordinates or sheet excellence per second text file

I'm making a game gamemaker, I have to get out of the player's position Or CSV file is new to gamemaker and I do not have much information about how to draw information from the game. I appreciate any help in this matter.

Thank you.

The game maker's file I / O is not the best. However, since there are 30 steps per second (by default, you can make the room & gt; settings), you can create a script to record the object. X and Object. Every 30 steps (or even for each stage, that case). I'm not sure if you want to input or output from the file, so if you explain more then maybe I can extend it on.

Edit # 1

to create the code for your first room, put it:

  global Pleyrsteps; Playersteps = 0;   

Then the player object, while a code snippet stage event ( replace objectname with the name of the object code ): < Pre> var file; File = file_text_open_write (working_directory + "\ log.txt") if (playersteps) {playersteps - = 1} else {file_text_write_real (file, objectname.x) file_text_write_string (file, ",") file_text_write_real (file, objectname.y) file_text_writeln (File) PlayerStep = 30} file_text_col (file)

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -