Jump to content


Photo

need a full guide to gml


  • Please log in to reply
16 replies to this topic

#1 darrenh

darrenh

    GMC Member

  • New Member
  • 39 posts
  • Version:Unknown

Posted 27 June 2012 - 10:51 AM

Hey!!
i think i have mastered the dragging the boxes thing, but i was starting to learn gml yesterday i keep practicing for 5hrs+ a day and i was woundering how i can get better at it.
where should i start?
what type of game should i create first?
  • 0

#2 Super

Super

    GMC Member

  • New Member
  • 4 posts
  • Version:GM8

Posted 27 June 2012 - 10:53 AM

GML is practically the same thing as DnD. Just follow the same logic.
  • 0

#3 darrenh

darrenh

    GMC Member

  • New Member
  • 39 posts
  • Version:Unknown

Posted 27 June 2012 - 10:58 AM

GML is practically the same thing as DnD. Just follow the same logic.

but its got a bunch of other stuff i cant get my head around please guide?
  • -1

#4 Swifty

Swifty

    Shadow

  • GMC Member
  • 370 posts
  • Version:GM:Studio

Posted 27 June 2012 - 10:59 AM

I'd definitely suggest going Here and downloading the "D&d Actions And Their Code Equivalents" file.

As Super has said, anything you've done in Drag and Drop can be done in code. So I'd recommend using the .pdf file you downloaded above, and going to one of your games you've made in DnD(drag and drop) and converting each event from DnD over to gml code, using the .pdf file to guide you. If you run into any problems post in the Q&A section, you should get fast replies. If you slowly transition out of DnD and into gml code, you'll do fine!

Swifty

Edited by Swifty, 27 June 2012 - 11:42 AM.

  • 1

#5 darrenh

darrenh

    GMC Member

  • New Member
  • 39 posts
  • Version:Unknown

Posted 27 June 2012 - 11:06 AM

I'd definitely suggest going Here and downloading the "D&d Actions And Their Code Equivalents" file.

As Super has said, anything you've done in Drag and Drop can be done in code. So I'd recommend using the .pdf file you downloaded above, and going to one of your games you've made in DnD(drag and drop) and converting each event from DnD over to gml code, using the .pdf file to guide you. If you run into any problems post in the Q&A section, you should get fast replies. If you slowly transition out of DnD and into gml code, you'll do fine!

Swifty

its a bunch of pictures?
  • 0

#6 Jack Indie Box

Jack Indie Box

    GMC Member

  • GMC Member
  • 1460 posts
  • Version:GM:Studio

Posted 27 June 2012 - 11:12 AM

maybe your getting stuck on structure, terminology or syntax.

What you should do, is either do some of the tutorials on this forum already or just start your own game.

here are some tips:
when your in a code block("execute a piece of code") you can right click or press f2(in most recent version of gm, not sure which) and you will be given some quick useful code snippets that you can use. these are like if statements, if else statements, switch statements and many types of loops. if you do not know what they are(which you probably wont) you should google them or look in the game maker help file(press f1)

the help file(f1) is where you will get most of your help. but you may not understand some of the terminology at first.

its a bunch of pictures?


if that isnt what you want, but you want a program to tell you what a drag and drop action is in code then use: this or this

Edited by Jack Indie Box, 27 June 2012 - 11:14 AM.

  • 1

#7 Chronic

Chronic

    Administrator

  • Global Moderators
  • 2713 posts
  • Version:GM:Studio

Posted 27 June 2012 - 11:24 AM

Read the help file, Its the best guild you'll find.

Also in a the Studio 1.0.253 update there was a tutorial added "Code a game".
  • 0

#8 Swifty

Swifty

    Shadow

  • GMC Member
  • 370 posts
  • Version:GM:Studio

Posted 27 June 2012 - 11:43 AM


I'd definitely suggest going Here and downloading the "D&d Actions And Their Code Equivalents" file.

As Super has said, anything you've done in Drag and Drop can be done in code. So I'd recommend using the .pdf file you downloaded above, and going to one of your games you've made in DnD(drag and drop) and converting each event from DnD over to gml code, using the .pdf file to guide you. If you run into any problems post in the Q&A section, you should get fast replies. If you slowly transition out of DnD and into gml code, you'll do fine!

Swifty

its a bunch of pictures?

Okay try thank link again I've updated it or click here: http://lucb1e.com/gm...o_gml_Ver 7.pdf

Read the help file, Its the best guild you'll find.

Also agreed here, the help file is the best guide you will find. However if you're having trouble finding the gml code for certain DnD actions use the .pdf I linked you to get you started. Once you know the right gml function, you can look it up in the help file to read all about it and all the other functions that relate to it.

Swifty

Edited by Swifty, 27 June 2012 - 11:46 AM.

  • 0

#9 chance

chance

    GMC Member

  • Reviewer
  • 5771 posts
  • Version:GM:Studio

Posted 27 June 2012 - 12:03 PM

i keep practicing for 5hrs+ a day and i was woundering how i can get better at it.

You'll generally find many (maybe most) skilled GML coders learned the basics of programming in school first. Once you have a basic understand of how programming languages and algorithms work, learning another language like GML is very easy.

So that's where I'd recommend you start -- school classes, if they're available. Learning the basic concepts from a programming teacher may not be required, but it's very valuable. It'll give you the logic and problem-solving skills for any language you want to learn later.

But keep experimenting with GML on your own, at the same time.

Edited by chance, 27 June 2012 - 12:05 PM.

  • 0

#10 @Alex@

@Alex@

    Retired GMC Reviewer

  • Reviewer
  • 3075 posts
  • Version:Unknown

Posted 27 June 2012 - 01:35 PM

I've got a couple of gml guides available in my signature but their nowhere near complete and the beginners guide is a bit outdated (Rewrite in the works). But just look in the tutorials sections theirs loads of guides that take you through GML step by step and a bucket load more that teach or show specific aspects.
  • 0

#11 RaythXC

RaythXC

    GMC Member

  • GMC Member
  • 38 posts
  • Version:GM8

Posted 27 June 2012 - 02:41 PM


i keep practicing for 5hrs+ a day and i was woundering how i can get better at it.

You'll generally find many (maybe most) skilled GML coders learned the basics of programming in school first. Once you have a basic understand of how programming languages and algorithms work, learning another language like GML is very easy.

So that's where I'd recommend you start -- school classes, if they're available. Learning the basic concepts from a programming teacher may not be required, but it's very valuable. It'll give you the logic and problem-solving skills for any language you want to learn later.

But keep experimenting with GML on your own, at the same time.

I agree with this. I found my PHP and a few other languages have similar syntax to GML and it's helped me. Also just check the helpfile you can usually find what you want. At least it's a good helpfile unlike some you can find out there that give very vague descriptions of everything,
  • 0

#12 land of games

land of games

    han solos friend

  • GMC Member
  • 407 posts
  • Version:GM:HTML5

Posted 01 July 2012 - 07:45 PM

gml is easy enough where you dont need to take classes.
I tought myself :thumbsup: because I live in a rural community so we dont have much in class selection
just keep practicing.
I actully watched youtube video tutorial...... and the one day I realised that I knew the basics of gml, and went from there.
  • 0

#13 username303

username303

    GMC Member

  • New Member
  • 5 posts
  • Version:GM8

Posted 02 July 2012 - 06:59 AM

I agree with land of games.

GML is not a very hard language to learn, but it is by no means easy to master. I am self taught, and it took a lot of work to figure it out. It is important to learn a lot about programming CONCEPTS, not just programming in GML. The help section does wonders for learning about GML specific syntax, and I still use it every time i code. (i have a bad memory)

The day that I really feel like i got a grip on GML was the day I was able to read the pseudo-code for a complex pathfinding algorithm (Dijkstra's algorithm) and convert it to GML. For me, programming is more about the concepts behind the code than the syntax of the code itself.

Don't give up!
  • 0

#14 chance

chance

    GMC Member

  • Reviewer
  • 5771 posts
  • Version:GM:Studio

Posted 02 July 2012 - 12:36 PM

gml is easy enough where you dont need to take classes.

Yes, anybody can learn GML on their own. That wasn't the point about taking programming classes.

Formal programming classes can teach you techniques and paradigms you may never imagine on your own. Classes can teach you good programming practices and how to avoid common mistakes many self-taught programmers make. And lastly, classes can improve your innovation, imagination, and creative problem solving skills.

So it's a shame classes aren't available in your area. But for anyone who has access, I strongly recommend you take them. Even just a few beginner/intermediate courses will make lots of difference.

Edited by chance, 02 July 2012 - 12:37 PM.

  • 1

#15 CrazyGuyGames

CrazyGuyGames

    YYGF Member

  • GMC Member
  • 194 posts
  • Version:GM8.1

Posted 03 July 2012 - 11:01 AM

Friend here is your solution, first download GML buddy.
http://sandbox.yoyog...36-gml-buddy-v3
This can translate all the D&D to GML using game maker's interface, there are some extra actions too, but remember is not exactly how game maker works.
Then download my GML example, and chek the help in game maker
http://sandbox.yoyog...l-for-begginers
This should help you, notice that the example, was made quite long ago, when I wasn't that good for GML, but this have helped a lot of users so.
  • 0

#16 Terrified Virus

Terrified Virus

    Moderators Plaything

  • GMC Member
  • 721 posts
  • Version:GM:Studio

Posted 06 July 2012 - 04:40 PM

GML is practically the same thing as DnD. Just follow the same logic.

I would disagree with this, as many functions/statements are based on DnD, but there are also many other more advanced functions.
  • 0

#17 Yal

Yal

    Gun Princess

  • Global Moderators
  • 5837 posts
  • Version:GM8.1

Posted 09 July 2012 - 03:08 PM

Press F1 while in Game Maker (not while running a game). Complete guide of the GML (spare the deprecated but still functionable bits).
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users