Learning GML
Home Help Search Login Register
 

Username  
Password


Pages: [1]
  Print  
Author Topic: Learning GML  (Read 191 times)
0 Members and 1 Guest are viewing this topic.
Edogawa
Lord
Offline Offline

It's over 9000!!!11

*

Posts: 261
View Profile
« on: July 21, 2009, 08:53:59 AM »

Let me get this straight. I want to make a game. And in the future an online game like SO. Where do I start? I don't know much GML. All I know in Game Maker is like D&D and those basics.

How did you learn GML? huh
Logged
Rutgerk
[SOČ Dev-Team]
Lord
Offline Offline

....

*

Posts: 448
View Profile WWW
« Reply #1 on: July 21, 2009, 10:19:23 AM »

google.com -> Gamemaker tutorials..
yoyogames.com -> Forum -> Tutorials
Logged
Wiro
King Slime
Forum God
Offline Offline


*

Posts: 6253
View Profile
« Reply #2 on: July 21, 2009, 10:50:05 AM »

YoYoGames forums suck. And no, they're not called the GMC because it's not a community, it's one big e-penis contest + flame war + omg we are so awesome show-off for the yoyogays people.
Logged

Login failed...
Your mom failed! >_>
Login succesful.

hhahahah silenceeeeee
JordanMaster22
Police-Chief Slime
Forum Legend
Offline Offline

Better than Jordanmas--hey WAIT A MINUTE!..

*

Posts: 1558
View Profile
« Reply #3 on: July 21, 2009, 11:04:46 AM »

All you know is D&D?  Q_Q

I honestly do not know how I learned GML.  I think I was just looking at a bunch of open source GM games and tutorials and learned it subconsciously.

There's nothing to GML than variables and actions.

global.variable="Hello" //Hello is a string.  It can be in quotes "" or ''.  Global. indicates that this variable will apply to the entire game.  A variable can be named anything you want as long as it's vacant.

va="Wazzap" //va is a local variable.  That means that this variable can only be used in the same object.  If another object wants to act on this variable, it will need to use the with() code.

show_message(va) //This will show a message saying Wazzap.  You have to initiate the variable first.  Ex, put the variable's value before a code acts on it.  It will only show Wazzap if it's in the same object that va was initiated in.  if another object wants to do this, it will need to initiate it's own "va" code.  Ex: va="Wazzap" or va="Figgle".  If it wants to show the one that was initiated in the other object, it will need to do this:

with ([other object's name in parenthesis]) {
show_message(va) }

show_message(global.variable) //This will show the word, Hello.  No matter what object you are or room you're in, unless the vairable's value is changed, it will always show "Hello".

show_message("Blablabla") //This will show a message saying Blablabla.  It will only show that message.  The quotes indicate that it is a string, not a variable.

if global.variable="Hello" {
show_message("OMG!") } //This will only show a message (that says "OMG!") only is global.variable is equal to "Hello".  If it is not equal to "Hello", it will not show the message.  To make it equal to "Hello", then put global.variable="Hello" BEFORE it somewhere.

////

This may sound confusing, but experiment around in Game Maker.  Then you can use this to convert D&D to GML.

EDIT: Wiro, lol.  Some guy posted a topic on Grammar.  He tried to say no u ur sux brb, etc.  Here was my response to it:

Quote
ookay... n00b alert! n00b alert! sum1 get the n00b police!!

It's in this topic. http://forums.yoyogames.com/forums/1/topics/552
« Last Edit: July 21, 2009, 11:09:28 AM by JordanMaster22 » Logged
Edogawa
Lord
Offline Offline

It's over 9000!!!11

*

Posts: 261
View Profile
« Reply #4 on: July 21, 2009, 03:31:35 PM »

LOTS OF STUFF

Yeah the if part and the variable part are kinda similar to php. I know PHP, Html, CSS... I think that will make it easier since most coding languages are very alike to eachother. Oh and I need to learn GML 'cause I just bought GM7 Pro and I don't know much about making games. yet Lips Sealed
Logged
Wiro
King Slime
Forum God
Offline Offline


*

Posts: 6253
View Profile
« Reply #5 on: July 21, 2009, 06:22:05 PM »

Here was my response to it:

Quote
ookay... n00b alert! n00b alert! sum1 get the n00b police!!


That's exactly the kind of behaviour I was referring for. Unsubtle trolling is not only retarded but also makes you look bad. Anyway, I forgot about the YYG forums and I was talking about the so-called GMC. The YYG forums are completely retarded. The GMC is just, bleh, retarded. lol

I read through the topic you linked to, and am seriously past any level of LOL and ROFL, because, I mean, seriously, this is just...undescribable. That's how sad it is.

Quote
There is no shame in being new.
I am 40 and every time I blink there is something new.

Pedophile alert! >.> Seriously, wtf are all these morons doing on the YYG forums? Or even in the Game Maker Scene at all!? >_____>

Also, this would've made me giggle if the above didn't freak me out:
Quote
I think people shouldn't use it unless quoting someone.

I had to learn what noob is, LOL is, etc... all of them i had to learn.

If you start using that stuff, people can't read it, so they won't like it.

If you quote someone, you should find a way to explain what it means. It's not fair to noobs (noob is common slang, even outside of the internet, but people should still explain what it means.)
People who contradict themselves are funny. Smiley

And then there's a bunch of people who go on about Esperanto and French people who can't speak proper English and have trouble figuring out what LOL is. >.> I hate them so much, bunch of retarded morons. Such a shame to see what the YoYoGays have done to such a great program >.>

As for tutorials, you should look through the ruins of what was once the GMC. The one I used is in the featured forum I believe. After that the manual (press F1 in GM) helped me out a great deal in figuring out more complicated stuff. It's not all too hard once you got the basics under your belt. And after that it gets a bit harder again.
« Last Edit: July 21, 2009, 06:29:23 PM by Wiro » Logged

Login failed...
Your mom failed! >_>
Login succesful.

hhahahah silenceeeeee
Kamokow
Forum God
Offline Offline

OHMAGEE!!

*

Posts: 2156
View Profile WWW
« Reply #6 on: July 22, 2009, 03:15:41 AM »

I would try to help you learn if youd like Smiley. However, I'm working on C++ rait now... But, the way I learnt is by doing, and thats really how I learn everything Awesome..
Logged

joe
Guest
« Reply #7 on: July 22, 2009, 08:52:27 PM »

Quote
va="Wazzap" //va is a local variable.  That means that this variable can only be used in the same object.  If another object wants to act on this variable, it will need to use the with() code.

Although the with() code is a good way to make another object perform an action, when changing another object's variable, it's probably quicker to just to:

(otherobjectsname).va="NO U";

So lets say an object, i don't know, objIAmAmazing has this in its create event:
Quote
amazing=true; //True = 1, False = 0. I usually just use the numbers

and then, this other object, say, objRainOnYourParade wants to change that. In its create event, he can have:
Quote
objIAmAmazing.amazing=false; //LOL NOOB HAHAHA

But that's only modifying variables. It doesn't get fun until you get into loops and functions. Cheesy that's when things start really adding up. It's kind of like a giant puzzle in a way sorta.
Logged
Kamokow
Forum God
Offline Offline

OHMAGEE!!

*

Posts: 2156
View Profile WWW
« Reply #8 on: July 23, 2009, 09:14:24 AM »

Or I might make the suggesstion, that if you plan to move to a more advanced programming language you just go to learn that now, as to get good at it Awesome.
Logged

Pages: [1]
  Print  
 
Jump to: