Jump to content


Photo
- - - - -

PacMan Tutorial -GML Through Implementation-


  • Please log in to reply
20 replies to this topic

#1 GmMkr

GmMkr

    GMC Member

  • GMC Member
  • 130 posts

Posted 01 August 2010 - 01:29 AM

  • Title: PacMan Tutorial
  • Description: A tutorial that uses the popular game PacMan to help users that are completely new to GML or have just begun. It is strongly recommended that a user be very familiar with D&D.
  • GM Version: GM7
  • Registered: No.
  • File Type: .zip and .gmk
  • File Size: ~0.5MB
  • File Link: http://www.mediafire...x6zsnuiila881il
Additional Info
This tutorial teaches the reader how to make a PacMan game from scratch using GML and teaches a user some methods for polishing games. It's for complete beginners at GML and for those that need some help with GML.

This tutorial teaches a lot of game design concepts and ideas that can be used in one's own games. The entire tutorial is neat, legible, and color coded. Written in a professional manner.

The ZIP file contains the PDF and two folders. One folder consists of GMKs that have the game saved up to a certain point in the tutorial. The reader has access to these GMKs in case he/she gets stuck or simply wants to compare and check. One of the GMKs contains the game complete with features not shown in the tutorial to challenge the reader.

The other folder contains resources that already come with Game Maker for easy access.

Here's a screenshot of one of the pages:

Posted Image

Edited by GmMkr, 28 August 2010 - 05:38 AM.

  • 2

#2 johnpaul2304

johnpaul2304

    GMC Member

  • New Member
  • 4 posts

Posted 01 August 2010 - 07:19 PM

Thanks for the tutorial it helped me out on making my first "actual game" lol unlike that click the fruit thing. but i get confused if the Thing on the Right for movements and stuff are the same as the Execution Code cuz the buttons on the right seems easier. But aside that GREAT TUTORIAL!
  • 0

#3 GmMkr

GmMkr

    GMC Member

  • GMC Member
  • 130 posts

Posted 01 August 2010 - 10:56 PM

Thank you very much. I'm glad it helped you out! :lol:

I'm not quite sure I understand what you mean by:

i get confused if the Thing on the Right for movements and stuff are the same as the Execution Code cuz the buttons on the right seems easier


  • 0

#4 johnpaul2304

johnpaul2304

    GMC Member

  • New Member
  • 4 posts

Posted 02 August 2010 - 01:39 PM

Thank you very much. I'm glad it helped you out! :lol:

I'm not quite sure I understand what you mean by:

i get confused if the Thing on the Right for movements and stuff are the same as the Execution Code cuz the buttons on the right seems easier

Oh, lol sorry to confuse you, i'm new to Game Maker, and i what i meant was the drag n' drop seems the same as Execution but execution seems alot easier it's just that i can't read codes or the C++ thingy
  • 0

#5 GmMkr

GmMkr

    GMC Member

  • GMC Member
  • 130 posts

Posted 02 August 2010 - 05:27 PM

Oh, lol sorry to confuse you, i'm new to Game Maker, and i what i meant was the drag n' drop seems the same as Execution but execution seems alot easier it's just that i can't read codes or the C++ thingy


Oh. ^_^

Well, it's not C++. It's GML. Yes, GML does tend to be cleaner and easier to write out but it's more difficult to understand than Drag and Drop when you start using more advanced code. To the untrained eye, of course.

Edited by GmMkr, 02 August 2010 - 05:28 PM.

  • 0

#6 Nubcake

Nubcake

    Nubcake

  • GMC Member
  • 1295 posts
  • Version:Unknown

Posted 03 August 2010 - 09:20 AM

smooth grid movement well done :) 5/5
  • 0

#7 GmMkr

GmMkr

    GMC Member

  • GMC Member
  • 130 posts

Posted 03 August 2010 - 04:59 PM

Thanks :D

I'm hoping to get this staff picked or something. :P
  • 0

#8 owlman

owlman

    GMC Member

  • GMC Member
  • 1 posts

Posted 04 August 2010 - 02:54 AM

Good job, GmMkr. I can tell that you put a lot of time into this, and it looks like a very valuable resource for GML beginners. I hope this gets more publicity, because it's the most detailed and easy to use user-generated tutorial I've ever seen. Great job, I'm glad to see this sort of thing for new users who just want to learn. 5/5, I'd give it 5.5/5 if that were mathematically possible.
  • 0

#9 GmMkr

GmMkr

    GMC Member

  • GMC Member
  • 130 posts

Posted 11 August 2010 - 03:13 AM

Well, you're very welcome. :]

I think I'm going to add some quotes to the main post to show what people have thought so far.
  • 0

#10 GmMkr

GmMkr

    GMC Member

  • GMC Member
  • 130 posts

Posted 28 August 2010 - 05:39 AM

Well, it's understandable that with how hard I worked on this I'd like a little more recognition so I've edited the first post to make it clearer what this tutorial has to offer and to (hopefully) make it more appealing.

I hope this helps someone out. :)
  • 0

#11 DaftPunk

DaftPunk

    GMC Member

  • New Member
  • 9 posts

Posted 29 August 2010 - 04:08 AM

Thanks for this.
In the process of using this right now and I have to say it's really useful.
I'm pretty new to Game Maker and coding. I've used drag and drops all my life and it's nice to have a tutorial like this that implements code and explains the code thoroughly.
I'm getting a kick out of coding it's fun for me learning this stuff as I've always wanted to learn.
Very well organized and really helpful for beginners like me.

The only part I don't understand so far is when you create scr_orient why does it use two "=" to check if the hspeed is 0?

the code line is:
if (hspeed == 0)

edit: nvm figured it out

Finished this tutorial and it was extremely helpful, hoping you'll write more in the future.

Edited by DaftPunk, 29 August 2010 - 12:03 PM.

  • 0

#12 modessitt

modessitt

    GMC Member

  • New Member
  • 1 posts

Posted 30 August 2010 - 07:38 AM

Thanks for this tutorial. I especially liked how you explained what the code meant as you went (for us noobs). It especially answered a question I had about having an object continue moving in whatever direction it currently is if you push a different key but the way is blocked. Before, my object would stop along a wall if I pushed towards the wall.

My only issue after following your tutorial is that the score and lives reset back to 0 and 3 when I went to the next room. I tried looking back over your instructions to see if I typed the code correctly, and it looks like I did - but I'm tired and need to go to bed, so I'll look again in the morning.

Still, a great learning tool. I feel like I have a good grasp of the basics, and I now need to see if there is an entire listing of all the code commands, what they do (in noob speak), and how to use them. Then I can decide what I want to do with it....
  • 0

#13 GmMkr

GmMkr

    GMC Member

  • GMC Member
  • 130 posts

Posted 30 August 2010 - 06:30 PM

Thank you very much for your reply. :)

I shall answer your question:

My only issue after following your tutorial is that the score and lives reset back to 0 and 3 when I went to the next room


Yes, I did address this in the tutorial but maybe not as explicitly as I should have. What you need to bear in mind is that the central control, that is, the object that sets the lives and score should only be in the first room of your game. The second control (the one that displays the lives and score) is the one that should be in all of the rooms.

Hope that helps. :D
  • 0

#14 GmMkr

GmMkr

    GMC Member

  • GMC Member
  • 130 posts

Posted 08 October 2010 - 04:23 AM

I believe that a bump is in order. It's been a while since I've posted on here but I'm still very willing to get replies.
If you need any help with the tutorial, please do not hesitate to ask.
  • 0

#15 DaemonAlardInc

DaemonAlardInc

    GMC Member

  • New Member
  • 1 posts

Posted 09 October 2010 - 03:44 PM

Seeing as you're still checking this topic, I thought I'd mention - I tried the link listed above several times but it doesn't seem to be working. Could you upload the tutorial again or post it in the thread?
  • 0

#16 GmMkr

GmMkr

    GMC Member

  • GMC Member
  • 130 posts

Posted 01 December 2010 - 04:19 AM

The link is working again.
  • 0

#17 GmMkr

GmMkr

    GMC Member

  • GMC Member
  • 130 posts

Posted 23 March 2011 - 12:02 AM

Considering that it has been several months since this has been posted in, I figured I'd bump it to see if it would become more noticed. It's pretty much professional quality, so I'm hoping it'll get a few more replies this time around. :)
  • 0

#18 stevanooz

stevanooz

    GMC Member

  • New Member
  • 10 posts

Posted 02 July 2011 - 03:22 PM

I am new to this forum... and just learned the GML... just a couple days ago I thought to create a pacman game... but.. an action pacman game... and your solution is good and simple... I just add some more code to create the action style. I want the pacman now can shoot a fire/batarang, create supersonic wave/retractable chain.. is limited of course... :lol:

thanks for this simple but great tutorial...
  • 0

#19 creatip

creatip

    GMC Member

  • New Member
  • 47 posts
  • Version:Unknown

Posted 30 October 2011 - 04:41 PM

Best Tutorial so far. I finally came over some interesting (and well explained) stuff that I actually could use in my game.

Are you gonna come up with another Tutorial? I could really use some help clarifying some random()-related issues (that appear to be more complicated that I initially thought). Or are you curious to see what’s up in a PM?

Keep up the good work!
  • 0

#20 GmMkr

GmMkr

    GMC Member

  • GMC Member
  • 130 posts

Posted 11 November 2011 - 01:58 AM

I'm glad you appreciate my tutorial, guys! I thought this was dead, so I've been very inactive. I'm glad to see that this was made a staff choice. Seriously, I'm giddy! ^-^

Anyway, creatip, I've switched over to web design now, so it's not extremely likely that I'll make another tutorial. However, it's not impossible. I may end up writing something else at some point. Just, don't wait on me. :thumbsup:
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users