Author Topic: [UPDATED] Tutorial: Getting Started With Fangame Development  (Read 53478 times)

klazen108

  • Administrator
  • The Kid
  • Posts: 286
  • your a kid now your a squid now
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Chrome 39.0.2171.95 Chrome 39.0.2171.95
    • View Profile
    • Delicious-Fruit
  • Playstyle: Keyboard
Re: Tutorial: Getting Started With Fangame Development
« Reply #30 on: January 06, 2015, 11:58:55 AM »
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

  • Spike Dodger
  • Posts: 114
  • Lives are an antiquated concept.
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 39.0.2171.95 Chrome 39.0.2171.95
    • View Profile
  • Playstyle: Keyboard
Re: Tutorial: Getting Started With Fangame Development
« Reply #31 on: January 14, 2015, 11:22:41 AM »
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

  • Administrator
  • The Kid
  • Posts: 286
  • your a kid now your a squid now
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Chrome 39.0.2171.95 Chrome 39.0.2171.95
    • View Profile
    • Delicious-Fruit
  • Playstyle: Keyboard
Re: Tutorial: Getting Started With Fangame Development
« Reply #32 on: January 14, 2015, 06:24:45 PM »
"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

  • Spike Dodger
  • Posts: 114
  • Lives are an antiquated concept.
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 39.0.2171.95 Chrome 39.0.2171.95
    • View Profile
  • Playstyle: Keyboard
Re: Tutorial: Getting Started With Fangame Development
« Reply #33 on: January 15, 2015, 10:51:49 AM »
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.
« Last Edit: January 17, 2015, 07:47:28 AM by 128-Up »

Græy

  • Trial Wannabe
  • Posts: 1
  • OS:
  • Linux (Ubuntu) Linux (Ubuntu)
  • Browser:
  • Chrome 41.0.2272.76 Chrome 41.0.2272.76
    • View Profile
  • Playstyle: Keyboard
Re: Tutorial: Getting Started With Fangame Development
« Reply #34 on: May 17, 2015, 07:40:04 AM »
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.

klazen108

  • Administrator
  • The Kid
  • Posts: 286
  • your a kid now your a squid now
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Chrome 42.0.2311.152 Chrome 42.0.2311.152
    • View Profile
    • Delicious-Fruit
  • Playstyle: Keyboard
Re: Tutorial: Getting Started With Fangame Development
« Reply #35 on: May 19, 2015, 12:54:57 AM »
As of now, I'm not aware of any basic engines available in any other programming languages with all the physics and gameplay worked out (and basic is an understatement - writing a game engine meant to be built upon is serious work!) If you're interested in developing a fangame without using gamemaker, but would like to get the physics right, feel free to ask questions, or research for yourself! I'd be very interested to see something like that developed ( ͡•ᴗ͡•)

On a side note, this tutorial is pretty outdated now... I need to write a new one for GMStudio now that we've got a working engine for it!

GalacticHooloovoo

  • Wannabe
  • Posts: 11
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Chrome 43.0.2357.130 Chrome 43.0.2357.130
    • View Profile
  • Playstyle: Keyboard
Re: Tutorial: Getting Started With Fangame Development
« Reply #36 on: July 02, 2015, 09:51:34 PM »
Hello! First of all I'd like to thank you for this tutorial! It has been very helpful! However, I encountered a problem whilst playtesting. When I turn the music off, I am able to pass through the spikes without dying. Do you know how to fix this?
Thanks!

Rad

  • Wannabe
  • Posts: 10
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 43.0.2357.130 Chrome 43.0.2357.130
    • View Profile
  • Playstyle: Keyboard
Re: Tutorial: Getting Started With Fangame Development
« Reply #37 on: July 03, 2015, 01:15:28 AM »
What engine are you using?

Does your player die to spikes when the music is turned back on?

Anon70000

  • Cherry Eater
  • Posts: 50
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 38.0 Firefox 38.0
    • View Profile
  • Playstyle: Keyboard
Re: Tutorial: Getting Started With Fangame Development
« Reply #38 on: July 03, 2015, 03:36:29 AM »
Hello! First of all I'd like to thank you for this tutorial! It has been very helpful! However, I encountered a problem whilst playtesting. When I turn the music off, I am able to pass through the spikes without dying. Do you know how to fix this?
Thanks!
You're probably using Yuuutu.
Ctrl is a godmode in Yuuutu, iirc look in the scripts

GalacticHooloovoo

  • Wannabe
  • Posts: 11
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Chrome 43.0.2357.130 Chrome 43.0.2357.130
    • View Profile
  • Playstyle: Keyboard
Re: Tutorial: Getting Started With Fangame Development
« Reply #39 on: July 03, 2015, 10:25:41 AM »
Found it! Thanks Anon70000! :tenKapple:

GalacticHooloovoo

  • Wannabe
  • Posts: 11
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Chrome 43.0.2357.130 Chrome 43.0.2357.130
    • View Profile
  • Playstyle: Keyboard
Re: Tutorial: Getting Started With Fangame Development
« Reply #40 on: July 04, 2015, 03:42:54 PM »
Oh! Also, I am unsure on something dealing with triggers. I know how to make it so that a spike will rise/fall, but I cannot figure out how to make it stop where I want it to. Can anyone help with this?
Thanks! (again)

lawatson

  • The Kid
  • Posts: 331
  • I do things and I make things.
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 43.0.2357.130 Chrome 43.0.2357.130
    • View Profile
  • Playstyle: Keyboard
Re: Tutorial: Getting Started With Fangame Development
« Reply #41 on: July 04, 2015, 05:47:19 PM »
You can try making it follow a path and then setting its speed to 0 when the path ends (there's an event for it).

If you wanna go a step up, you can try to make it auto-create a path kinda like NANG triggers, although that might take a bit more knowledge to pull.
(click to show/hide)

smoke weed everyday

bananaguy12

  • Guest
Re: Tutorial: Getting Started With Fangame Development
« Reply #42 on: August 05, 2015, 08:44:07 AM »
This was very helpful, thanks :denKamilia_v2: :denMiku_v2:

cragl3yman343

  • Trial Wannabe
  • Posts: 1
  • OS:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 44.0.2403.155 Chrome 44.0.2403.155
    • View Profile
  • Playstyle: Keyboard
Re: Tutorial: Getting Started With Fangame Development
« Reply #43 on: August 18, 2015, 07:06:40 AM »
I am new to the whole game design world as I am planning on majoring it in College. I would like to begin practicing and some people recommend just starting with Studio while others have said to start with Seph or Lemon. I would like some opinions on the professionals of the I Wanna Be community. What would everyone recommend?
The noobiest of noobs.

lawatson

  • The Kid
  • Posts: 331
  • I do things and I make things.
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 44.0.2403.155 Chrome 44.0.2403.155
    • View Profile
  • Playstyle: Keyboard
Re: Tutorial: Getting Started With Fangame Development
« Reply #44 on: August 18, 2015, 08:09:44 AM »
I've been sticking with 8.1 for quite a while, and it looks like there's a lot of technical weird changes in Studio, but Studio has shaders and new functions as well as a lot more extensions on the gamemaker community, so I would suggest Studio to be your engine.
(click to show/hide)

smoke weed everyday