Jump to content


Photo
- - - - -

Easy-to-learn Gml Tutorial


  • Please log in to reply
147 replies to this topic

#21 Zpace

Zpace

    GMC Member

  • GMC Member
  • 54 posts

Posted 14 June 2007 - 09:47 AM

NOW THIS really helped me out :). Thanks man. I think everyone which are willing to learn GML should read this. :)

OverAndOut.
/Zpace
  • 0

#22 ewaygames

ewaygames

    GMC Member

  • New Member
  • 10 posts

Posted 19 June 2007 - 07:47 PM

It is a lot of reading, I got a little confused when it started to go to the ! sign and brackets, Then I got totally confused when I got to the jump to a place and so on.

Anyway this guide was somewhat helpful if it was broken down more into detail.

Is there some way to get a broken down guide or book from somewhere on D&D, GML or both?
  • 0

#23 Compmonkey

Compmonkey

    GMC Member

  • New Member
  • 161 posts

Posted 21 June 2007 - 01:06 PM

I got confused on the arrays before i saw this =P im still a little =P but i know alot of other things thanx to this =)
  • 0

#24 me123

me123

    GMC Member

  • New Member
  • 123 posts

Posted 05 July 2007 - 06:14 AM

can you make changes to it so it can work with game maker 7?
  • 0

#25 hellfire911

hellfire911

    GMC Member

  • New Member
  • 844 posts

Posted 07 July 2007 - 03:03 PM

Basically :lol: and :whistle: are the same.
  • 0

#26 cheeserules

cheeserules

    GMC Member

  • GMC Member
  • 570 posts

Posted 16 July 2007 - 05:08 AM

I sooooooo reccomend this tutorial! It tought me half the stuff I already know and than another half of the stuff it tought me instantly! It is extremely well documented. It's the best beginner's GML tutorial out there!
  • 0

#27 theBlighter

theBlighter

    GMC Member

  • New Member
  • 177 posts

Posted 22 July 2007 - 03:09 AM

Best. Tutorial. Ever.

Dude, I just got through a section that taught me two things: How to make different sized jumps based on how long you press the jump button, and how to get realistic stopping (like, not stopping instantly, but stopping more like a sort of speed gradient).
  • 0

#28 rogueheart_69

rogueheart_69

    GMC Member

  • New Member
  • 3 posts

Posted 01 August 2007 - 08:43 AM

thank you so much fr putting this up...i cant tell you how much this has helped me...

i actually understand it now.....!!!!!java script:emoticon(':whistle:')
smilie!!!!!!!!!!!!!!!!!!!!!!!!
  • 0

#29 Phantom_Of3

Phantom_Of3

    GM Programmer

  • New Member
  • 710 posts

Posted 07 August 2007 - 07:26 PM

Great tutorial for learning to use GML, but next time do you think you could put in statements besides if? Some confusing ones are for, while, until, and even with can be confusing.

So maybe in the next guide you could include those. I am currently making a guide to starting off as a beginner and becoming advanced. I will recommend this guide as one for learning how to use GML.
  • 0

#30 mattpk

mattpk

    GMC Member

  • New Member
  • 821 posts

Posted 15 August 2007 - 01:56 AM

x += 1
This code is most likely the type of code used in most platformers or RPGs. If put into the "keyboard left" event of an object, it will rapidly move the object to the right. using a - (minus) sign instead of the plus sign will cause it to go backwards making it (in this case) go left.

You said that in your tutorial. read it carefully. why would anyone want to to move an object right when you press left???
  • 0

#31 MythicRuler

MythicRuler

    GMC Member

  • New Member
  • 438 posts

Posted 15 August 2007 - 10:02 PM

Nice tutorial! I still don't see the benefit of arrays though. For the items say you use an array like this:

item[1,0]="coin"
item[1,1]="gives you money"
item[1,2]=1
item[1,3]=100

Why use that when you could use this:

coinname="coin"
coindescription="gives you money"
coinamount=1
cointcost=100

What is the difference? Why is it bettery to use arrays? Thanks.
  • 0

#32 funcravers

funcravers

    GMC Member

  • New Member
  • 1087 posts

Posted 18 August 2007 - 12:45 AM

Thank you so much! I am a leader of a GM team and its very sad that i could hardly use GML but this tutorial tought me most of it in about 30 minutes! :D
  • 0

#33 Nergal

Nergal

    GMC Member

  • New Member
  • 33 posts

Posted 20 August 2007 - 03:54 AM

I LOVE YOU FOR MAKING THIS TUTORIAL! :blink: At first I didn't think it was going to work much, but then one day I got sick. Since I was sick, I had nothing better to do than read, so I turned on my computer, opened the tutorial, and understood all of it! Now I actually know how to use code other than sound_play(whatever)! Thank you very much! I highly recommend this tutorial to ANYONE who wants to learn GML.
  • 0

#34 crems123

crems123

    GMC Member

  • New Member
  • 90 posts

Posted 22 August 2007 - 03:18 PM

Nice tutorial! I still don't see the benefit of arrays though. For the items say you use an array like this:

item[1,0]="coin"
item[1,1]="gives you money"
item[1,2]=1
item[1,3]=100

Why use that when you could use this:

coinname="coin"
coindescription="gives you money"
coinamount=1
cointcost=100

What is the difference? Why is it bettery to use arrays? Thanks.

<{POST_SNAPBACK}>


there are a lot of advantages by using arrays but these are some main ones


for starters the variables are shorter to write,

secondly you can use variables as array numbers like this:
item[var,var]
which i found useful for making inventories

and when you have loads of items you only need to change 1 or 2 numbers not a word or even 2 words which saves a lot of time.


what looks better

this
coinname="coin"
coindescription="gives you money"
coinamount=1
cointcost=100
potionname="potion"
potiondescription="heals you"
potionamount=5
potioncost=250


or this
item[1,0]="coin"
item[1,1]="gives you money"
item[1,2]=1
item[1,3]=100
item[2,0]="potion"
item[2,1]="heals you"
item[2,2]=5
item[2,3]=250



the one using arrays looks a lot more formal and easier to read if you use them alot in code.

hope this helped :whistle:


thanks general for this tutorial i wouldnt have even bothered with gml until i found you guide :mellow:

Edited by crems123, 22 August 2007 - 04:58 PM.

  • 0

#35 AjDeF3

AjDeF3

    Platform Game Lover

  • New Member
  • 1264 posts

Posted 22 August 2007 - 11:54 PM

This is how i learned GML. I printed it and read it about 5 times.
The only thing better than this is actually having a person tutor you.


HIGHLY RECOMMENDED
  • 0

#36 General Leo

General Leo

    Master Gamer

  • GMC Member
  • 975 posts
  • Version:GM8

Posted 27 August 2007 - 10:55 PM

Ok guys, I released my final version of the tutorial. It has the last of the grammar and typo fixes. I also changed a bit of the wording so it's less confusing in the parts people are saying they got lost at.

Hope it continues to help you all!
  • 0

#37 Phantom_Of3

Phantom_Of3

    GM Programmer

  • New Member
  • 710 posts

Posted 31 August 2007 - 07:38 PM

The problem is that you only talk about one statement: if. That is one that is really easy to learn you need to get onto other statements like while, with, then, continue, break, switch, return and all of the other ones.
  • 0

#38 ryguydavis

ryguydavis

    GMC Member

  • New Member
  • 277 posts
  • Version:Unknown

Posted 06 September 2007 - 07:30 PM

I've given this a quick look over, and from what I can tell, it is a very solid beginning to gml. It makes the daunting looking help file not quite as necessary when starting out-- though I highly highly recommend the GM help file, I still refer to it after 5 years of programming. Something about this tutorial's relaxed style of writing, though, is almost as if someone is talking, which makes it easy to understand even if someone has no experience with programming and it seems impossible to learn.

EXCELLENT idea to add in some example scripts at the end. It puts code into practical terms, shows that this strange language has serious power and gets creative ideas going.

I would suggest you make a series of these, going from start to some more advanced features, though I understand how much work writing something like this is.
  • 0

#39 Protolisk

Protolisk

    GMC Member

  • New Member
  • 77 posts

Posted 12 September 2007 - 09:12 AM

I sent the games tech teacher the file and he gave it to everyone in the class.

A bit confusing at the end but still good. Could you please make another that has other things like when and all that.
  • 0

#40 anhkanm

anhkanm

    GMC Member

  • New Member
  • 55 posts

Posted 24 September 2007 - 01:23 AM

I know that this topic is old and all but If you would like I can make your tutorial into an html file with clickable links to certain parts of the tutorial. FYI displaying it on a web browser is easier for the public that haven't subscribed to microsoft word atm and it wouldn't take me long at all to make it...

btw this is great stuff !!!
  • 0




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users