GPWiki.org
GPWiki.org
It is currently Fri May 24, 2013 6:36 pm

All times are UTC




Post new topic Reply to topic  [ 29 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Wed Feb 15, 2012 5:28 am 
Level 1 Cleric

Joined: Mon Jan 23, 2012 8:10 am
Posts: 13
Location: Cyber Space
I have created a new website called GameVenture.

At GameVenture I will be teaching others how to create games/utilites using the GML Programming Language.

You may be asking "Why GML?". GML is an extremely powerful programming language. I have a BS in Game and Simulation Programming/Computer Science with a minor in Mathematics using C++ and honestly, I feel like it was a waste of time. GML is not taught at colleges and may not be for quite some time. It is one of the best/easiest programming languages to learn and I find it just as powerful, if not more, than C++, C, Java, Python, ect...

When I finished college I found out about GML and immedieately quit C++. I have made great money using and creating games/applications with it and plan on using it the rest of my life.

So if you wan't to learn a great language and not have to go to college and spend thousands of dollars I suggest you get over to my site right now! Visit it and join at http://www.gameventure.net

Note - You should follow a number of the YoYo Games lessons before following these ones, and have GameMaker 8.1 Standard



Hello World -



We'll start with a traditional program to demonstrate how to write some simple code. We're going to create a script that shows the message "Hello World" on the screen.



Creating a simple script:



1. Start a new game.

2. Choose Create Script from the Resource menu. The script editor will appear.

3. In the Name box in the toolbar, give the script the name scr_hello.

4. In the editor, type the following piece of code:

Code:
//Display message 'Hello World'
{
 show_message('Hello World');
}


5. Press the 10/01 button on the toolbar. This will test the program and display an error message if you made a mistake.

6. Close the editor by clicking the green checkmark in the toolbar.



Note that GameMaker shows parts of the code in different colors. This color-coding helps you know when your code is written correctly. For example, we know that show_message is the correct name for one of GameMaker's built-in functions because it has turned blue. If we had made a spelling mistake, then it wouldn't turn blue and we would know something was wrong. It is also particularly important to give your scripts meaningful names; that way, you can remember what the script dows when you use it in an action or some other code.



Before we can see what this code does, we need to execute it. To do so, we must create a new object with a key press event that executes the script.



Executing the script:



1. Create a new object and add a Key press, event to it.

2. Include the Execute Script action (control tab) and select the scr_hello script from the menu. The arguments can all be left at 0 since we do not use arguments in this script (more about these later).

3. Create a room and place one instance of the object in it.



Now run the game and press the spacebar. If you did everything correctly, a message box should pop up containing the text “Hello World”. If you made a mistake in your script, then GameMaker will report an error when the game loads or when the script is executed. If you do get an error, you should check the script carefully for typing errors. Even using an uppercase letter rather than lowercase can cause an error in GML—so take great care. Now let’s consider what this script does. The first and last lines contain curly brackets. Different kinds of brackets signify different things in GML, and curly brackets mark the beginning and end of a block of code (a bit like the Start Block and End Block actions). However, in GML every program must start with an opening curly bracket and must end with a closing bracket. Curly brackets enclose a block of code. Such blocks of code will also be used later at other places. The program consists of just one command. Such commands are called statements. A program consists of one or more statements. A statement ends with a semicolon. In this way, GameMaker understands where one statement ends and the next one begins. Don’t forget the semicolons!



The statement in our program is a call to the function show_message(). Functions can be recognized because they have a name and then (optionally) some arguments between the parentheses. We have already used such functions before as arguments in actions. For example, we’ve used the random() function in a number of places. Much like actions, functions perform certain tasks. The show_message() function has one argument, which is the text to be displayed; 'Hello World' is that argument. Take note of the single quotes around it as they indicate that this is a string (text). Also note that to make functions easier to recognize and to indicate that you typed their name correctly, they are displayed in a dark blue color. So when the script is executed, the one statement in it is executed, which shows the alert box containing the text that is provided as an argument. Of course, we could have achieved the same thing using the Show Message action. But as we will see later, by using scripts we can do many new things.

_________________
Taking GML to the next level
website: GameVenture
portfolio: Trenton Edward


Last edited by Trenton Edward on Wed Feb 22, 2012 4:26 pm, edited 2 times in total.

Top
 Profile  
 
PostPosted: Wed Feb 15, 2012 9:21 am 
Bibliotherapist
User avatar

Joined: Wed Nov 03, 2004 1:28 pm
Posts: 6719
Location: Oxford, Englandshire
Hi Trenton,

Thanks for the insight. I think this type of content would be better on the wiki. More people will see it there and it can be extended/added to.

I see that you are setting up your own site and working on the wiki might be a clash of interests, but you can link to your site from any relevant pages.

_________________
10 PRINT "Bad Monkey ";
20 GOTO 10


Top
 Profile  
 
PostPosted: Wed Feb 15, 2012 8:27 pm 
Bytewise

Joined: Sun Oct 16, 2011 3:09 pm
Posts: 277
Location: Here (where else?)
Actually, my first question was what is GML?, but never mind.

_________________
My project: Messing about in FreeRCT, dev blog, and IRC #freerct at oftc.net


Top
 Profile  
 
PostPosted: Wed Feb 15, 2012 8:32 pm 
Super-dooper pooper scooper
User avatar

Joined: Tue Oct 11, 2011 8:08 pm
Posts: 170
Alberth wrote:
Actually, my first question was what is GML?, but never mind.

LOL. I think its the scripting language for Game Maker. :P


Top
 Profile  
 
PostPosted: Thu Feb 16, 2012 8:48 am 
Harmlessness does no harm
User avatar

Joined: Tue Sep 14, 2004 8:37 pm
Posts: 3809
Location: Ferriday, LA, US
The idea behind GameVenture (as I previously understood it) sounds like one with a lot of potential. But if it becomes "just another Game Maker site"...

Game Maker is fine and all, but is really nothing more than a stepping stone. If you ever get serious about game development, you are eventually going to be forced to wander towards greener pastures. As difficult as it is to make a living as a game developer, one would have to be particularly naive to expect to be able to use something like Game Maker to sustain their career.

I guess the point is that Game Maker is, quite strictly, a hobbyist tool. I'm not saying one cannot make a successful game with it. But if you plan to write more than one game over the course of your life, there will come a time fairly soon that you will leave this sort of thing behind to become little more than a distant memory.

A lot of game developers started off as mod developers for other people's games. Take the first two games in the Doom franchise, for example. There were people who developed mods for those games. Do people still play Doom? Surely. Do people still write mods for Doom? Possibly. Do people who write mods for Doom -- and only write mods for Doom -- really expect to turn their excursion into any more than a hobby? I, personally, highly doubt it.

If you plan on mixing the ideas of teaching professional-style development, along with teaching Game Maker techniques, you should make a crystal-clear distinction between these two paths, lest any bright-eyed young'en comes along expecting to make it big as a game developer using Game Maker. If you start moving the goal posts that early in the game (no pun intended), it can be immensely frustrating.

_________________
What most people don't understand about "enlightenment" is that it is not an end-goal; but where you find yourself just before taking a new "first step."


Top
 Profile  
 
PostPosted: Thu Feb 16, 2012 12:52 pm 
Funky Monkey

Joined: Thu Sep 09, 2004 1:17 pm
Posts: 1553
Location: burrowed
This is becoming less and less true though.
Have you heard of gunpoint? It's a very neat little agent sneak thingy made in gamemaker. He now started to raise funds to develop a full game out of it, and i think he will do this in gamemaker aswell.

But in the mast vajority of cases it is but a stepping stone, i'd agree.

_________________
Long pork is people!

wzl's burrow


Top
 Profile  
 
PostPosted: Thu Feb 16, 2012 1:25 pm 
Harmlessness does no harm
User avatar

Joined: Tue Sep 14, 2004 8:37 pm
Posts: 3809
Location: Ferriday, LA, US
weezl wrote:
This is becoming less and less true though.
Have you heard of gunpoint? It's a very neat little agent sneak thingy made in gamemaker. He now started to raise funds to develop a full game out of it, and i think he will do this in gamemaker aswell.

But in the mast vajority of cases it is but a stepping stone, i'd agree.

I know I primarily harped on the case of the "stepping stone", but I did mention that a successful game could be made with Game Maker (your example "Gunpoint" fits this description). It just seems (to me) that it is more a case of such games being successful in spite of what was used to build it.

Could just be me stuck in the "old hat" way of thinking about Game Maker (I was one of their very first customers -- I ordered the original version of GM back in the DOS days, from an ad I came across in a computing magazine from the late '80s, or perhaps early '90s). I know Game Maker has come a long way since then, and I know the paradigm of what can be successful in the gaming market is changing rapidly (Minecraft is a prime example), so it could just be me blowing smoke. :)

_________________
What most people don't understand about "enlightenment" is that it is not an end-goal; but where you find yourself just before taking a new "first step."


Top
 Profile  
 
PostPosted: Mon Feb 20, 2012 6:38 am 
Level 1 Cleric

Joined: Mon Jan 23, 2012 8:10 am
Posts: 13
Location: Cyber Space
I have had great success using GameMaker. I find it to be just as good as any language, if you know what you're doing. On my site, you will learn so you can create professional games. I will even be showing how to export GM 8.1 Standard games to a number of platforms including: PSP, Android, and IOS. I have made tons of money on this program, and I believe I can help many others. As for GM being a stepping stone, I agree and disagree. It all depends on how much time and effort someone puts into GM for it to be of any use. I have a BS degree in Computer Science with a Cum Laude honor and I find GM to be a great tool.

_________________
Taking GML to the next level
website: GameVenture
portfolio: Trenton Edward


Top
 Profile  
 
PostPosted: Tue Feb 21, 2012 3:23 am 
Bytewise

Joined: Sun Oct 16, 2011 3:09 pm
Posts: 277
Location: Here (where else?)
LOL :)

What has a "BS degree in Computer Science with a Cum Laude honor" to do with how you think about GM?

_________________
My project: Messing about in FreeRCT, dev blog, and IRC #freerct at oftc.net


Top
 Profile  
 
PostPosted: Tue Feb 21, 2012 12:39 pm 
Harmlessness does no harm
User avatar

Joined: Tue Sep 14, 2004 8:37 pm
Posts: 3809
Location: Ferriday, LA, US
Alberth wrote:
What has a "BS degree in Computer Science with a Cum Laude honor" to do with how you think about GM?

To be fair, I don't think Trenton meant to imply that his degree/honors had anything specifically to do with his choice of running with GM. Rather, it seems he is saying "I am a competent computer user, so my decision to use GM is not necessarily one based on ignorance or naivety with regard to how things work."

If his claims of having a great degree of success with Game Maker, and making lots of money with his work with Game Maker, turn out to be true -- then who am I to argue? :) It's not a route I would have chosen (nor one I would choose now), but that doesn't by virtue make that route a dead-end.

_________________
What most people don't understand about "enlightenment" is that it is not an end-goal; but where you find yourself just before taking a new "first step."


Top
 Profile  
 
PostPosted: Tue Feb 21, 2012 6:47 pm 
Bytewise

Joined: Sun Oct 16, 2011 3:09 pm
Posts: 277
Location: Here (where else?)
rotInMilc wrote:
...Rather, it seems he is saying "I am a competent computer user, so my decision to use GM is not necessarily one based on ignorance or naivety with regard to how things work."
Exactly this is what I fear to be the case. He makes claims about game maker being the ultimate tool, using his title to make it more convincing, while in fact he is telling only half of the truth.
I would say, it's a disgrace on any degree to do that.

I am not against selling game maker as a good tool to make games, far from that. But making sure that any student understands what he gets and more importantly, doesn't get, seems like proper use of a title to me.

rotInMilc wrote:
... but that doesn't by virtue make that route a dead-end.
Of course not. Game maker is a DSL aimed at making games, and for its application domain, I am sure it works great.
Just like loading images is so much easier if you have an image library to do it :)

I am sure one can make nice programs with game maker, and probably also make lots of money with them. But claiming that Game maker is the one and only tool, and it beating all other languages in every way..... That's is a step too far, imho.


Albert (with a PhD in CS)

_________________
My project: Messing about in FreeRCT, dev blog, and IRC #freerct at oftc.net


Top
 Profile  
 
PostPosted: Tue Feb 21, 2012 7:32 pm 
Source Code Swashbuckler
User avatar

Joined: Wed Nov 09, 2011 3:58 am
Posts: 199
Location: Brazil
Well, with Game Maker you can do money, but can do the games you want?! What I mean is that Game Maker is limited, and "make money" is not the best argue to make programmers migrate from their tools to Game Maker. Game developers don't want just to make money.

Alberth wrote:
But claiming that Game maker is the one and only tool, and it beating all other languages in every way..... That's is a step too far, imho.

Not very much to say, just... agreed.

- Felipe(Biology degree student, with 10 years of programming experience!!!!!! really! :rofl )

_________________
"Life finds a way." - Ian Malcolm
My WebBlog: PixelDeveloper
English is not my native language, so excuse me for any writing mistakes.


Top
 Profile  
 
PostPosted: Tue Feb 21, 2012 7:39 pm 
Funky Monkey

Joined: Thu Sep 09, 2004 1:17 pm
Posts: 1553
Location: burrowed
what i just wanna maek games and can i have them selling in the world with game maker? cool

wzl (no degree)

Seriously though, Gamemaker seems like a tool viable to use for some people. I certainly cannot stand using frameworks authored by other people because i tend to do things differently, so it mainly comes down to GameMakers capabilities and subjective preferations.

_________________
Long pork is people!

wzl's burrow


Top
 Profile  
 
PostPosted: Tue Feb 21, 2012 7:42 pm 
Source Code Swashbuckler
User avatar

Joined: Wed Nov 09, 2011 3:58 am
Posts: 199
Location: Brazil
weezl wrote:
I certainly cannot stand using frameworks authored by other people

Me neither. It is so... un-nerdy.

EDIT: but game maker is really a good tool, in many ways. The only problem is the fact you don't have file management.

_________________
"Life finds a way." - Ian Malcolm
My WebBlog: PixelDeveloper
English is not my native language, so excuse me for any writing mistakes.


Top
 Profile  
 
PostPosted: Tue Feb 21, 2012 8:39 pm 
Harmlessness does no harm
User avatar

Joined: Tue Sep 14, 2004 8:37 pm
Posts: 3809
Location: Ferriday, LA, US
Alberth wrote:
rotInMilc wrote:
...Rather, it seems he is saying "I am a competent computer user, so my decision to use GM is not necessarily one based on ignorance or naivety with regard to how things work."
Exactly this is what I fear to be the case. He makes claims about game maker being the ultimate tool, using his title to make it more convincing, while in fact he is telling only half of the truth.
I would say, it's a disgrace on any degree to do that.

Well, for what it may be worth, the part about Trenton claiming that GM is "the ultimate tool" is not something I read into his stance.

To me, it seems more as though Trenton just has a preference, and has decided to more or less "run with it" -- I'm not sure that equates to a claim of "everything else sucks!"

Clint (High-school dropout -- ha ha, got all y'all suckas beat! :lol)

_________________
What most people don't understand about "enlightenment" is that it is not an end-goal; but where you find yourself just before taking a new "first step."


Top
 Profile  
 
PostPosted: Tue Feb 21, 2012 9:21 pm 
Bytewise

Joined: Sun Oct 16, 2011 3:09 pm
Posts: 277
Location: Here (where else?)
rotInMilc wrote:
Well, for what it may be worth, the part about Trenton claiming that GM is "the ultimate tool" is not something I read into his stance. ...
To me, it seems more as though Trenton just has a preference, and has decided to more or less "run with it" -- I'm not sure that equates to a claim of "everything else sucks!"


Let me quote the OP from his first message:
Trenton Edward wrote:
...I have a BS in Game and Simulation Programming/Computer Science with a minor in Mathematics using C++ and honestly, I feel like it was a waste of time. GML is not taught at colleges and may not be for quite some time. It is one of the best/easiest programming languages to learn and I find it just as powerful, if not more, than C++, C, Java, Python, ect...

When I finished college I found out about GML and immedieately quit C++. I have made great money using and creating games/applications with it and plan on using it the rest of my life.



Quote:
Clint (High-school dropout -- ha ha, got all y'all suckas beat! :lol)
:D
I like it how you all react to it :)

I tend not to wave with these things, most people are (correctly imho) not impressed by a piece of paper. However, in this case, it seemed... useful :)

_________________
My project: Messing about in FreeRCT, dev blog, and IRC #freerct at oftc.net


Top
 Profile  
 
PostPosted: Tue Feb 21, 2012 10:50 pm 
Funky Monkey

Joined: Thu Sep 09, 2004 1:17 pm
Posts: 1553
Location: burrowed
Alberth wrote:
most people are (correctly imho) not impressed by a piece of paper.


Too much still are imo.
Don't get me wrong, if you got your degree and earned it, you are free to brag about it, and people should acknowledge your achievement.
But if you apply for a job, especially in the computer science or more specific in the creative and game development field, a degree doesn't say anything about your capabilities in that regard. If you compare the skills of someone who did their degree in 3 years without prior knowledge in it with someone who does it as his hobby for 10+ years you can be quite certain about who has more experience and is more knowledgable about it.

Trenton Edward wrote:
...I have a BS in Game and Simulation Programming/Computer Science with a minor in Mathematics using C++ and honestly, I feel like it was a waste of time. GML is not taught at colleges and may not be for quite some time. It is one of the best/easiest programming languages to learn and I find it just as powerful, if not more, than C++, C, Java, Python, ect...

When I finished college I found out about GML and immedieately quit C++. I have made great money using and creating games/applications with it and plan on using it the rest of my life.


Well, to each his own i guess. :p

_________________
Long pork is people!

wzl's burrow


Top
 Profile  
 
PostPosted: Wed Feb 22, 2012 12:24 am 
Harmlessness does no harm
User avatar

Joined: Tue Sep 14, 2004 8:37 pm
Posts: 3809
Location: Ferriday, LA, US
Alberth wrote:
rotInMilc wrote:
Well, for what it may be worth, the part about Trenton claiming that GM is "the ultimate tool" is not something I read into his stance. ...
To me, it seems more as though Trenton just has a preference, and has decided to more or less "run with it" -- I'm not sure that equates to a claim of "everything else sucks!"


Let me quote the OP from his first message:
Trenton Edward wrote:
...I have a BS in Game and Simulation Programming/Computer Science with a minor in Mathematics using C++ and honestly, I feel like it was a waste of time. GML is not taught at colleges and may not be for quite some time. It is one of the best/easiest programming languages to learn and I find it just as powerful, if not more, than C++, C, Java, Python, ect...

When I finished college I found out about GML and immedieately quit C++. I have made great money using and creating games/applications with it and plan on using it the rest of my life.

Heh :)

I'm giving Trenton the benefit of the doubt on this one. It is easy to get excited by finding a tool that isn't mainstream, but makes life easier for you, to the point that the excitement becomes over-excitement. I don't agree with his opinion, or the way he chose to express it, but I don't really believe any real harm was intended (or done, for that matter).

_________________
What most people don't understand about "enlightenment" is that it is not an end-goal; but where you find yourself just before taking a new "first step."


Top
 Profile  
 
PostPosted: Wed Feb 22, 2012 5:03 pm 
Level 1 Cleric

Joined: Mon Jan 23, 2012 8:10 am
Posts: 13
Location: Cyber Space
First of all: I never claimed it was the "Ultimate Tool". Also I wasn't trying to mean much by my BS Degree, I was trying to get a message across. I know computers and programming very well, at least I believe I do, and even though people say GM is a "stepping stone" to get into "real" programming I have to strongly disagree. Every game,utility, or other type of software I have created in another language, I have been able to replicate in GML. A few of them I have made actually better and with more functionality.

And I know there are pros and cons to GM, just like any other language. The pros for me are; easy to use, works just as well as any other language, extremely expandable (through the use of libs and dlls), great speed, games/utilities are exportable to such platforms as the; psp, IOS consoles (iphone, ipad, ipod), Androide (phones), MAC, PC, PS3, and XBOX.

The cons for me are; Drag & Drop functions (They are very limited. If you ever use GM trust me stay away), GM Helpfile (doesn't explain much), unless you are a professional developer in C++ good luck finding tutorials in the actual programming language.

Its because of the cons that I am creating GameVenture. I wan't to show others who want to learn how to create amazing games/tools/utilities/engines/ect... in an amazing language. Of course I wan't to do this all free. Why charge for my knowledge? I just wan't to help. I know people say GM is limited, but honestly I have not found a single limitation in GM.

_________________
Taking GML to the next level
website: GameVenture
portfolio: Trenton Edward


Top
 Profile  
 
PostPosted: Thu Feb 23, 2012 2:09 am 
Game Programming Guru

Joined: Sun Aug 15, 2004 6:20 pm
Posts: 1090
I feel embarrassed after reading this thread.

_________________
Heard in #gpwiki: <wzl> is there some serious grammar fail in your line or am i just too intelligent for your logic


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 29 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group