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

Zero-G

  • [+--oo]
  • Alumi
  • Spike Dodger
  • Administrator
  • Posts: 167
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 33.0.1750.154 Chrome 33.0.1750.154
    • View Profile
    • My twitch channel
Re: Tutorial: Getting Started With Fangame Development
« Reply #15 on: March 26, 2014, 03:22:28 PM »
you could also open more threads for each category if you want.i think everyone would be cool if i sticky them since they are awesome guides so you have alot of space if needed

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:
  • Firefox 28.0 Firefox 28.0
    • View Profile
    • Delicious-Fruit
  • Playstyle: Keyboard
Re: Tutorial: Getting Started With Fangame Development
« Reply #16 on: April 12, 2014, 10:14:50 PM »
Alright Zero, I'll start splitting major sections out into different threads when I get a chance, so get that sticky gun ready :Kappa:

infern0man1

  • ~(=^・ω・^)ψ
  • Global Moderator
  • Oatmeal Killer
  • Posts: 1.021
  • Dear sir stroke madam, fire exclamation point
  • OS:
  • Windows Vista/Server 2008 Windows Vista/Server 2008
  • Browser:
  • Chrome 34.0.1847.116 Chrome 34.0.1847.116
    • View Profile
    • Twitter
  • Playstyle: Keyboard
Re: Tutorial: Getting Started With Fangame Development
« Reply #17 on: April 12, 2014, 10:37:06 PM »
Or perhaps a stickied thread linking to your threads.

Superlogan41

  • Wannabe
  • Posts: 11
  • Just Avoid The Spikes It's Simple
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Chrome 34.0.1847.116 Chrome 34.0.1847.116
    • View Profile
  • Playstyle: Keyboard
Re: Tutorial: Getting Started With Fangame Development
« Reply #18 on: April 16, 2014, 09:41:49 AM »
Klazen i did some of your work for you  :atkHappy:

https://www.iwannacommunity.com/forum/index.php?topic=943.0
Look Get To The Next Room And Avoid The Spikes Simple As That. Keepo

kilgour22

  • Cherry Eater
  • Posts: 82
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Firefox 29.0 Firefox 29.0
    • View Profile
  • Playstyle: Keyboard
Re: Tutorial: Getting Started With Fangame Development
« Reply #19 on: May 20, 2014, 11:26:11 PM »
On the topic of views, how do I get the view to follow the player after he undergoes a gravity change? I've tried a lot of different things, but I can't seem to get it to work.
Don't let a spike ruin your day.

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:
  • Firefox 29.0 Firefox 29.0
    • View Profile
    • Delicious-Fruit
  • Playstyle: Keyboard
Re: Tutorial: Getting Started With Fangame Development
« Reply #20 on: May 21, 2014, 12:31:51 AM »
The view should follow the player perfectly, even if his gravity changes, if you set it up in the room editor.

If you need custom view following code (for whatever reason), you can use this (but be warned it's kinda buggy if you've got anything being draw on screen relative to the view):
Code: [Select]
view_xview=player.x-400
view_yview=player.y-300;

if (view_yview<0) view_yview=0;
else if (view_yview+view_hview>room_height) view_yview=room_height-view_hview;

if (view_xview<0) view_xview=0;
else if (view_xview+view_wview>room_width) view_xview=room_width-view_wview;

Just stick that in the draw event of an object you put in the room and it should work.

PS I recommend you make a new thread for any issue you have, it's more likely to attract attention and makes it easier for people with the same problem to find answers :atkHappy:

Denferok

  • Community Manager
  • The Kid
  • Administrator
  • Posts: 355
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 34.0.1847.137 Chrome 34.0.1847.137
    • View Profile
    • My stream
  • Playstyle: Keyboard
Re: Tutorial: Getting Started With Fangame Development
« Reply #21 on: May 21, 2014, 12:49:26 AM »
Avoidance tutorial pls :Kappa:

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:
  • Firefox 29.0 Firefox 29.0
    • View Profile
    • Delicious-Fruit
  • Playstyle: Keyboard
Re: Tutorial: Getting Started With Fangame Development
« Reply #22 on: May 21, 2014, 05:43:49 PM »
Once I'm done making I Wanna Get Rekt, I plan on compiling all the information I've learned from ripping and designing bosses; and there will be plenty of information on your basic patterns and how to go from there :D

TheGamerGuy500

  • Cherry Eater
  • Posts: 62
  • I'm a gamer and a guy, video-game-music junkie...
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Chrome 35.0.1916.153 Chrome 35.0.1916.153
    • View Profile
    • TheGamerGuy500 HQ
  • Playstyle: Keyboard
Re: Tutorial: Getting Started With Fangame Development
« Reply #23 on: June 23, 2014, 06:18:12 PM »
Hey, um... I try to load a sound buuuuut when I click play I just hear the sound of no one caring (silence)
the mp3 I loaded is good, it can play via media player so what the hell  :atkCry:
Is there like a size limit to how big the file can be before it won't even play?
It only does this with sound files that I load, not the built in ones.
If I can't do anything about that, I'll be doomed to use guy rock for the whole game D:

EDITS: I figured it out, you gotta put it in audacity and then export it. The tutorial never said anything about that  :FrankerZ:
« Last Edit: June 23, 2014, 07:18:24 PM by TheGamerGuy500 »
Pro tip: you gotta run and jump at the same time!
Notice: She doesn't stop spinning.

:KappaHD:

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:
  • Firefox 30.0 Firefox 30.0
    • View Profile
    • Delicious-Fruit
  • Playstyle: Keyboard
Re: Tutorial: Getting Started With Fangame Development
« Reply #24 on: June 24, 2014, 03:15:01 PM »
If you try to use a sound file that you bought from amazon or itunes or something like that, it tends to not work in Game Maker (DRM or something, idk). So yeah running it through audacity can strip off the DRM and let you use it. I guess this could apply to other music files as well, but I haven't had this happen to me often, so I didn't consider it important enough to add to the tutorial.
I might go back in and mention it, maybe in a troubleshooting section for common problems.

petsson12

  • Spike Dodger
  • Posts: 121
  • I'm addicted to cats
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 39.0.2171.95 Chrome 39.0.2171.95
    • View Profile
    • my livestream yo
  • Playstyle: Keyboard
Re: Tutorial: Getting Started With Fangame Development
« Reply #25 on: December 29, 2014, 08:46:54 AM »
This will be so useful when I start working on my game for the fangame contest.  :cirThree:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

RandomFangamer

  • Cherry Eater
  • Posts: 71
  • Pico Pico Piiiiiii
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Chrome 39.0.2171.95 Chrome 39.0.2171.95
    • View Profile
  • Playstyle: Keyboard
Re: Tutorial: Getting Started With Fangame Development
« Reply #26 on: December 29, 2014, 09:15:33 PM »
When I try to run the yuuutu engine it brings up this:
___________________________________________
ERROR in
action number 1
of  Step Event
for object init:

Error reading byte.



Also, if I press ignore it brings up this:

___________________________________________
FATAL ERROR in
action number 1
of  Step Event
for object init:

Unexisting room number: 0

I have not messed with any of the code and can't figure out what the problem is,
does anyone know how to fix this?
« Last Edit: December 29, 2014, 09:29:39 PM by RandomFangamer »




:ItsBoshyTime: o o o o o :denProgress: o o o o o :paraKid:

infern0man1

  • ~(=^・ω・^)ψ
  • Global Moderator
  • Oatmeal Killer
  • Posts: 1.021
  • Dear sir stroke madam, fire exclamation point
  • OS:
  • Linux Linux
  • Browser:
  • Safari 4.0 Safari 4.0
    • View Profile
    • Twitter
  • Playstyle: Keyboard
Re: Tutorial: Getting Started With Fangame Development
« Reply #27 on: December 29, 2014, 10:17:23 PM »
Did you make sure the .gmk file is unzipped and in its own folder?

RandomFangamer

  • Cherry Eater
  • Posts: 71
  • Pico Pico Piiiiiii
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Chrome 39.0.2171.95 Chrome 39.0.2171.95
    • View Profile
  • Playstyle: Keyboard
Re: Tutorial: Getting Started With Fangame Development
« Reply #28 on: December 29, 2014, 10:43:57 PM »
You fixed it!
It was just lying around on my Desktop, but it works now!
Yay! :atkHappy:
« Last Edit: December 30, 2014, 07:29:43 PM by RandomFangamer »




:ItsBoshyTime: o o o o o :denProgress: o o o o o :paraKid:

PlainZombie

  • Wannabe
  • Posts: 17
  • 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 #29 on: January 03, 2015, 01:00:47 PM »
I'm having the hardest time sorting out drawing a boss health bar. I see there's a draw_healthbar function (separate from the Draw Health object action) but it never displays. Not sure if this is because my coordinates are wrong or because something is missing. I've tried drawing it in the room code, having the boss draw it from his code, and even using the Draw Health object. I feel like I'm missing something stupid. (My boss health is only 10)

Surprisingly, invincibility frames was easier to figure out than this haha.
You make ONE GAME about Beavers...