Fangames > Game Design

[UPDATED] Tutorial: Getting Started With Fangame Development

<< < (7/14) > >>

klazen108:
make sure you're doing draw actions in the draw event - all "draw" code needs to be done in that event.

For example, I just did this and it worked fine https://prntscr.com/5p7oo2

Let me know if it's not working for another reason!

128-Up:
Sometimes when I load a .gmk file to test it, I get this error:


___________________________________________
ERROR in
action number 1
of Create Event
for object menuBossDisplay:

Error reading byte.


I know there was an "error reading byte" thing mentioned earlier in the thread, but I'm sure this is a different problem. Any ideas what's causing it?

klazen108:
"Error reading byte" is an indicator that you've got some code reading a file improperly. This usually happens to me after I add lines to my save code to save & read a new value from the save file, but the save file that exists on disk doesn't have that new value in it yet. Therefore, when it goes to read that value from the file, it errors out because it's past the end of the file. Once you save to the file again the new value will be in there, so it won't error out again. Does this sound like it could be your problem? It would match your "only happens sometimes" problem ;)

If you think it might be something else, check the code in the create event of the "menuBossDisplay" object - try to figure out what it's loading, and why it might not be able to load that. Let me know if that helps any!

128-Up:
I'm pretty sure I didn't change anything in the code... I have the feeling I'm missing something obvious, but idk, code's foreign to me. :P
EDIT: After deleting the save files made by the game (not Game Maker), I can start a new playthrough twice before the error kicks in again.
(click to show/hide)
EDIT 2: Okay, I fixed it! \o/ Turns out the problem was in the callMenuData script.

Græy:
Are the non-GM based cross-platform engines?

I'm not willing to cash out $99 for GameMaker Studio's module that exports to Linux.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version