<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ashley Etchell &#187; game maker</title>
	<atom:link href="http://ash.etchell.co.uk/tag/game-maker/feed/" rel="self" type="application/rss+xml" />
	<link>http://ash.etchell.co.uk</link>
	<description>Its all a bit random</description>
	<lastBuildDate>Mon, 05 Jul 2010 16:02:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Far Trader &#8211; Docking and HUD</title>
		<link>http://ash.etchell.co.uk/2009/09/25/far-trader-docking-and-hud/</link>
		<comments>http://ash.etchell.co.uk/2009/09/25/far-trader-docking-and-hud/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 23:48:28 +0000</pubDate>
		<dc:creator>Ash</dc:creator>
				<category><![CDATA[Game Development]]></category>
		<category><![CDATA[game maker]]></category>
		<category><![CDATA[space trading game]]></category>
		<category><![CDATA[top down 2d game]]></category>

		<guid isPermaLink="false">http://ash.etchell.co.uk/?p=47</guid>
		<description><![CDATA[This week has been all about getting docking working. As trading will be the focus of the game, a system for docking at places to trade is pretty much essential. Along side the docking process comes the HUD. For now, &#8230; <a href="http://ash.etchell.co.uk/2009/09/25/far-trader-docking-and-hud/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This week has been all about getting docking working. As trading will be the focus of the game, a system for docking at places to trade is pretty much essential. Along side the docking process comes the HUD. For now, the HUD shows some basic information such as ship hull damage, fuel level, throttle indicator, speed, grid reference etc. I have also created a radar system that centres around the player object. This radar gives a nice accurate system for showing where you are in relation to other objects in the room (hat tip to <a href="http://www.birdinsky.com">3030 Deathwar</a> for that idea).</p>
<p>Additionally, I have created a test system for changing the players ship. Object inheritance and changing is possible in Game Maker, but not something that I have found easy (until I finally started to read the GM Manual!), so now you can switch between 2 different ships that have different stats on the fly.</p>
<p>Docking has been a complicated affair as im still learning GML, but It has forced me to restructure a lot of the code in the process, producing a more organised application structure.</p>
<p>Wont say any more at the moment, but heres some screen grabs:</p>
<div class="mceTemp mceIEcenter">
<div id="attachment_48" class="wp-caption aligncenter" style="width: 459px"><img class="size-full wp-image-48" title="Docking" src="http://ash.etchell.co.uk/wp-content/uploads/2009/09/ft-docking.gif" alt="the HUD display with docking ring active" width="449" height="236" /><p class="wp-caption-text">the HUD display with docking ring active</p></div>
</div>
<div id="attachment_49" class="wp-caption aligncenter" style="width: 459px"><img class="size-full wp-image-49" title="more ships" src="http://ash.etchell.co.uk/wp-content/uploads/2009/09/ft-more-ships.gif" alt="More ship sprites" width="449" height="142" /><p class="wp-caption-text">More ship sprites</p></div>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://ash.etchell.co.uk/2009/09/25/far-trader-docking-and-hud/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://ash.etchell.co.uk/2009/09/25/far-trader-docking-and-hud/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Game Maker Object Inheritance</title>
		<link>http://ash.etchell.co.uk/2009/09/20/game-maker-object-inheritance/</link>
		<comments>http://ash.etchell.co.uk/2009/09/20/game-maker-object-inheritance/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 11:56:49 +0000</pubDate>
		<dc:creator>Ash</dc:creator>
				<category><![CDATA[Game Maker information]]></category>
		<category><![CDATA[Game Development]]></category>
		<category><![CDATA[game maker]]></category>
		<category><![CDATA[Game Maker objects and parents]]></category>

		<guid isPermaLink="false">http://ash.etchell.co.uk/?p=39</guid>
		<description><![CDATA[Game Make is a very easy to use application which gives you the ability to create decent games (or applications) in a matter of minutes, but to create awesome games, you going to have to learn GML and other programatic &#8230; <a href="http://ash.etchell.co.uk/2009/09/20/game-maker-object-inheritance/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Game Make is a very easy to use application which gives you the ability to create decent games (or applications) in a matter of minutes, but to create awesome games, you going to have to learn <a href="http://en.wikipedia.org/wiki/Game_Maker_Language">GML</a> and other programatic structures like object orientation parent classes and inheritance.</p>
<p>The idea of parents and inheritance is pretty simple. Lets set an example using a car as our &#8216;object&#8217;. Our car will be a <a href="http://www.flickr.com/photos/spablab/171645108/">Trebant</a>. In Game Maker, you would create an Object in the usual way and call it for example <em>&#8216;obj_trebant</em>&#8216;. You would then set code and actions for <em>obj_trebant</em>. </p>
<p>Now, lets say your creating a game with a number of different cars, so you go ahead and create a bunch of objects to represent different cars, applying Events and Actions to each. This could turn into a long process depending on how many car objects are in your game. You could just duplicate the first car object and change Actions for each new object you create, that will save you a bit of time. But what happens if for example you need to change a variable or action for each car object further down the line. You have to edit each object in turn, manually changing Actions and Variables.</p>
<p>There has to be a better way, and there is. Using parent classes and inheritance&#8230;</p>
<p>In order to use parent classes and inheritance to good effect, your going to have to work out what each of your cars have in common. Using our car example above lets say that all cars have headlights. You might have a piece of GML or some other Action in your <em>obj_trebant</em> object that defines headlights. As we want all cars to have headlights, it would make sense to create a parent object and add the headlight code into that, lets create a new object and call it &#8216;<em>obj_car</em>&#8216;. Now, we have two objects: obj_car and obj_trebant. In your trebant object set its parent object to <em>obj_car</em>. Jolly good, you have now created an object with a parent. </p>
<p>If you test your code, you will probebly find that any code in your parent class isnt being executed, why is this? This is down to object inheritance. If you have a Create and Step event in obj_trebant, it will by default override the Create and Step events in obj_car. To combat this you need to ensure that you add the &#8216;call event&#8217; action from the control menu to each Event that you want to inherit code or Actions from. If you add Action > Event Call to your Create Event of <em>obj_trebant</em> it will execute the code in the Create Event of <em>obj_car</em>, then execute the code in <em>obj_trebant</em>.</p>
<p>principles like this can be very handy in games where you create a number of objects (cars for example) that you want both the player and AI to use. Think Grand THeft Auto, where the player can get in any car, the cars are also AI controlled. So by using parents and inheritance, you dont have to create player fixed object. Your player can simply be an object that can inherit its visible object from something else <em>obj_trebant</em> for example. This is an easy action in Game Maker with the GML function:</p>
<p><code>object_set_parent('object  to change','object to change to');</code></p>
<p>Lets say we create our player object: &#8216;<em>obj_player</em>&#8216;. By default, lets say hes a Subaru (create an object called <em>obj_subaru</em>) with a parent of <em>obj_car</em>. If we wanted to change the type of car the player is, add a code event with the following code:</p>
<p><code>object_set_parent(obj_player,obj_subaru);</code></p>
<p>I hope the above goes a little way towards explaining how parent classes work in Game Maker and helps you to create more interesting and efficient games.</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://ash.etchell.co.uk/2009/09/20/game-maker-object-inheritance/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://ash.etchell.co.uk/2009/09/20/game-maker-object-inheritance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Far Trader, finally some action</title>
		<link>http://ash.etchell.co.uk/2009/09/16/fat-trader-finally-some-action/</link>
		<comments>http://ash.etchell.co.uk/2009/09/16/fat-trader-finally-some-action/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 01:04:37 +0000</pubDate>
		<dc:creator>Ash</dc:creator>
				<category><![CDATA[Game Development]]></category>
		<category><![CDATA[game maker]]></category>
		<category><![CDATA[top down 2d game]]></category>

		<guid isPermaLink="false">http://ash.etchell.co.uk/?p=29</guid>
		<description><![CDATA[Collision detection in place,as this image proves. I also has to rewrite a lot of the scripts and methods I was using. I had gone down a path of objectiveness that was counter productive to how Game Maker works so &#8230; <a href="http://ash.etchell.co.uk/2009/09/16/fat-trader-finally-some-action/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_37" class="wp-caption aligncenter" style="width: 460px"><img src="http://ash.etchell.co.uk/wp-content/uploads/2009/09/ft-31.gif" alt="Finally, some in game action" title="in game shot" width="450" height="450" class="size-full wp-image-37" /><p class="wp-caption-text">Finally, some in game action</p></div>Collision detection in place,as this image proves. I also has to rewrite a lot of the scripts and methods I was using. I had gone down a path of objectiveness that was counter productive to how Game Maker works so had to start from scratch. I made a lot of progress this evening.</p>
<p>I now have the basics for:</p>
<ul>
<li>Ship movement</li>
<li>Inertia on movement</li>
<li>Particles to represent the ships engines</li>
<li>Collision between objects</li>
<li>Working projectiles</li>
<li>A very basic object health variable</li>
<li>object damage based on damage value in projectile object</li>
</ul>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://ash.etchell.co.uk/2009/09/16/fat-trader-finally-some-action/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://ash.etchell.co.uk/2009/09/16/fat-trader-finally-some-action/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Far Trader Game Maker project</title>
		<link>http://ash.etchell.co.uk/2009/09/14/far-trader-game-maker-project/</link>
		<comments>http://ash.etchell.co.uk/2009/09/14/far-trader-game-maker-project/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 12:54:34 +0000</pubDate>
		<dc:creator>Ash</dc:creator>
				<category><![CDATA[Game Development]]></category>
		<category><![CDATA[game maker]]></category>
		<category><![CDATA[top down 2d game]]></category>

		<guid isPermaLink="false">http://ash.etchell.co.uk/?p=26</guid>
		<description><![CDATA[Ive decided to put up some of the ship designs I am working on before going into details of the game. enjoy my poor attempt at sprite design. Share on Facebook]]></description>
			<content:encoded><![CDATA[<p>Ive decided to put up some of the ship designs I am working on before going into details of the game. enjoy my poor attempt at sprite design.<br />
<div id="attachment_25" class="wp-caption aligncenter" style="width: 459px"><img src="http://ash.etchell.co.uk/wp-content/uploads/2009/09/ft-ships.gif" alt="A selection of ships from far trader" title="ft-ships" width="449" height="142" class="size-full wp-image-25" /><p class="wp-caption-text">A selection of ships from far trader</p></div></p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://ash.etchell.co.uk/2009/09/14/far-trader-game-maker-project/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://ash.etchell.co.uk/2009/09/14/far-trader-game-maker-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Game Maker &#8211; First attempt at game design</title>
		<link>http://ash.etchell.co.uk/2009/09/14/game-maker-first-attempt-at-game-design/</link>
		<comments>http://ash.etchell.co.uk/2009/09/14/game-maker-first-attempt-at-game-design/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 02:30:43 +0000</pubDate>
		<dc:creator>Ash</dc:creator>
				<category><![CDATA[Game Development]]></category>
		<category><![CDATA[game maker]]></category>
		<category><![CDATA[top down 2d game]]></category>

		<guid isPermaLink="false">http://ash.etchell.co.uk/?p=16</guid>
		<description><![CDATA[I&#8217;ve always fancied designing and writting a PC game but I dont really have the required skills. Sure, I can develop in PHP with my eyes closed &#8211; same with MySQL and other related languages, but games development is a &#8230; <a href="http://ash.etchell.co.uk/2009/09/14/game-maker-first-attempt-at-game-design/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://ash.etchell.co.uk/wp-content/uploads/2009/09/GM-splash.gif" alt="GM-splash" title="GM-splash" width="450" height="300" class="aligncenter size-full wp-image-35" /><br />
I&#8217;ve always fancied designing and writting a PC game but I dont really have the required skills. Sure, I can develop in PHP with my eyes closed &#8211; same with MySQL and other related languages, but games development is a totally different dicipline.</p>
<p><strong>Game Maker</strong><br />
That&#8217;s where Game Maker 7 comes in, I discovered this little gem while trying to find good XNA 3 tutorials and after only 2 &#8211; 3 days of light reading and playing around with it I already have some decent results. Game Maker takes a WYSIWYG approach, anyone who has spent some time using Flash and action scripting will feel right at home with the Game Maker interface. Developing a game centres around a number of Objects and other items such as sprites, backgrounds, fonts, sounds effects etc and rooms. A room is a playing field for your game to play out on. You place objects in the rooms and set actions and events on each object, these events can be predefined items or you can simply script them using whats known as GML (Game Maker Language).</p>
<p><strong>Far Trader &#8211; my game in progress</strong><br />
The games ive always fancied putting together always seem to centre around space and sci-fi. As a kid I used to play a lot of pen and paper RPG&#8217;s like Megatraveller, Space Master and other sci-fi games. Megatraveller always appealed to me due to its hard fiction approach rather than the space opera of star wars. So there it is, I now have something to base my game on, Megatraveller the game of intergalactic trading and warfare. I do not wish to infringe on any copyright&#8217;s with this game so it wont be directly based on Megatraveller, just loosly influenced by its setting and attitude to sci-fi.</p>
<p>A lot of planning has and will go into this game and I plan to document it here, but for now I will show some images from the planning of the game and a couple of mini screen grabs from what I have so far, but before the images here is a VERY brief overview of the game:</p>
<p><strong>Far Trader</strong> will be a top down 2D space trading and combat game, with an emphasis on the trading. As the player you will be able to trade goods by travelling from one system to another. Trading goods will net you profit, with this profit you will be able to purchase different ships, some ships will be more combat oriented, some more biased towards trading. The initial aim of the game will be to make xxx money in yyy time frame, more of a sandbox challenge initially, but over time i would like to add other ways of making money; pirate bounties, people courier tasks etc, then finally I would like to add some kind of over-arching storyline which would bring you to end game.</p>
<div id="attachment_13" class="wp-caption aligncenter" style="width: 459px"><img src="http://ash.etchell.co.uk/wp-content/uploads/2009/09/ft-1.gif" alt="A small selection of the ship design templates" title="A small selection of the ship design templates" width="449" height="142" class="size-full wp-image-13" /><p class="wp-caption-text">A small selection of the ship design templates</p></div>
<div id="attachment_15" class="wp-caption aligncenter" style="width: 459px"><img src="http://ash.etchell.co.uk/wp-content/uploads/2009/09/ft-2.gif" alt="Some sample in game shots of the first ship moving" title="In game shots" width="449" height="142" class="size-full wp-image-15" /><p class="wp-caption-text">Some sample in game shots of the first ship moving</p></div>
<p>I will give more details in another post.</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://ash.etchell.co.uk/2009/09/14/game-maker-first-attempt-at-game-design/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://ash.etchell.co.uk/2009/09/14/game-maker-first-attempt-at-game-design/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
