<?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>Ben Atkinson</title>
	<atom:link href="http://www.digitalmedia.benatkinson.org.uk/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.digitalmedia.benatkinson.org.uk</link>
	<description>Digital Media</description>
	<lastBuildDate>Sun, 25 Mar 2012 00:06:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Updates In Construct 2, Do Away With Code</title>
		<link>http://www.digitalmedia.benatkinson.org.uk/?p=502</link>
		<comments>http://www.digitalmedia.benatkinson.org.uk/?p=502#comments</comments>
		<pubDate>Sun, 25 Mar 2012 00:06:17 +0000</pubDate>
		<dc:creator>Ben Atkinson</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.digitalmedia.benatkinson.org.uk/?p=502</guid>
		<description><![CDATA[You may have seen a lot of my recent posts talking about the amount of coding which has gone into the drag and drop feature of level three of my game. This is where I started and where I did the most work trying to understand construct and what it is all about. Messing around <a href="http://www.digitalmedia.benatkinson.org.uk/?p=502"> read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>You may have seen a lot of my recent posts talking about the amount of coding which has gone into the drag and drop feature of level three of my game. This is where I started and where I did the most work trying to understand construct and what it is all about. Messing around and trying to get the coding correct took a lot of work (you can see the amount of coding required below).</p>
<p style="text-align: center;"><img class="aligncenter" src="http://i1156.photobucket.com/albums/p580/benatkinson1991/codeend.jpg" alt="" width="716" height="367" /></p>
<p style="text-align: center;"><span id="more-502"></span></p>
<p><img class="alignleft" style="padding-right: 1em;" src="http://i1156.photobucket.com/albums/p580/benatkinson1991/draganddrop.jpg" alt="" width="288" height="229" />However, in the past 24 hours I have discovered a hidden element of construct called &#8220;behaviours&#8221; &#8211; This means that you can set objects to do certain things. While I have been using the software there have also been updates in terms of the actual Construct program which I have had to download and install. It now appears that during one of those updates, a feature specifically for drag and drop has been introduced.</p>
<p>What that means for me, is that I can do away with all my earlier code. While many might consider this wasted time, everything I have done on this project has been a learning curve and I&#8217;m happy to say that now we&#8217;re nearing the end of the process I&#8217;m very pleased with what is coming out of Construct 2.</p>
<p>After all, the new element of drag and drop will clear my coding, thus making the game run faster and furthermore it solves the problem of the user dragging too far and too small an object so will hopefully help the game to run quicker in .apk format on tablets.</p>
<p>I&#8217;ll post again in the next few days once I&#8217;ve made the changes and any effects they have had!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalmedia.benatkinson.org.uk/?feed=rss2&#038;p=502</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Right and Wrong Answers</title>
		<link>http://www.digitalmedia.benatkinson.org.uk/?p=496</link>
		<comments>http://www.digitalmedia.benatkinson.org.uk/?p=496#comments</comments>
		<pubDate>Mon, 05 Mar 2012 16:29:54 +0000</pubDate>
		<dc:creator>Ben Atkinson</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Early App Tests]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.digitalmedia.benatkinson.org.uk/?p=496</guid>
		<description><![CDATA[For a number of weeks, I&#8217;ve been struggling with showing the right and wrong answers on my app design. Basically, when I first perfected the drag and drop feature of level one I didn&#8217;t think about what would happen when the user dropped the body part on the right or the wrong place. I knew <a href="http://www.digitalmedia.benatkinson.org.uk/?p=496"> read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" style="padding-right: 1em;" src="http://blog.adw.org/wp-content/uploads/question-mark.jpg" alt="" width="211" height="196" />For a number of weeks, I&#8217;ve been struggling with showing the right and wrong answers on my app design. Basically, when I first perfected the drag and drop feature of level one I didn&#8217;t think about what would happen when the user dropped the body part on the right or the wrong place. I knew that I wanted to the body part to return to it&#8217;s starting position when dropped in the wrong place or indeed when not on the body at all.</p>
<p>I achieved this returning feature by recording the X and Y position of each element at the start and transposing these to variables set within the object from the moment it is dragged. Then, when dropped at any location that isn&#8217;t the right one the object returns to the position determined by these variables. It&#8217;s pretty simple when you think about it. When you go on to solve the next problem, you think perhaps that at the same time as the object returns a speech bubble could pop up showing &#8220;Wrong Answer,&#8221; or something like that.</p>
<p><span id="more-496"></span></p>
<div id="attachment_497" class="wp-caption aligncenter" style="width: 527px"><a href="http://s366326030.websitehome.co.uk/wordpress/wp-content/uploads/2012/03/badanswerdrop.jpg"><img class="size-full wp-image-497" title="badanswerdrop" src="http://s366326030.websitehome.co.uk/wordpress/wp-content/uploads/2012/03/badanswerdrop.jpg" alt="" width="517" height="172" /></a><p class="wp-caption-text">This is the final code I ended up with for each element, it allows the wrong answer to show at the correct time.</p></div>
<p>As you can see from this example, the way in which I&#8217;ve achieved the return is to have the system element constantly checking where each object is and if it&#8217;s not over the right answer, then it returns to the start position and the &#8220;Wrong Answer&#8221; displays. Of course, I realised later that this expression is wrong because apart from when it is dropped over the correct answer, any element is always going to be <em>NOT </em>over the correct answer. That in turn means that the bad answer will be showing all the time.</p>
<p>For a long time I couldn&#8217;t think about how to solve this problem. Sometimes with coding you have to take a step back and think about something else until the answer comes to you. I spent that time working on my R and D file and was able to make good progress. The past few days have lead me to find an answer to my earlier problem.</p>
<p>The object doesn&#8217;t return if it&#8217;s over the correct answer. Therefore, in order to make the wrong answer show at the right time, all I needed to do was duplicate the Frankestein body where objects are dropped and the mirror where they are kept from the start of the level and rename them. Then If I were to place them over the original body and mirror and set the opacity to 0, I can define that the bad answer shows only when the object is dropped over the now hidden &#8220;Frankenstein2.&#8221; At the same time, If I set a &#8220;when touch ended&#8221; expression I can ensure that the system waits until the user actually drops the object, before showing the bad answer.</p>
<p>Pleased that I have solved this earlier problem, I can now set about adding the final touches to level one. This same idea will work for showing the correct answers too, and leaves me free to spend next week working on my level 2 design.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalmedia.benatkinson.org.uk/?feed=rss2&#038;p=496</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Budget and Costs</title>
		<link>http://www.digitalmedia.benatkinson.org.uk/?p=481</link>
		<comments>http://www.digitalmedia.benatkinson.org.uk/?p=481#comments</comments>
		<pubDate>Wed, 29 Feb 2012 16:23:46 +0000</pubDate>
		<dc:creator>Ben Atkinson</dc:creator>
				<category><![CDATA[Project Paperwork]]></category>

		<guid isPermaLink="false">http://www.digitalmedia.benatkinson.org.uk/?p=481</guid>
		<description><![CDATA[Here&#8217;s a breakdown of the costs for my project, if I was to produce this on an industry budget and start from scratch with no software or hardware with which to build the project.]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a breakdown of the costs for my project, if I was to produce this on an industry budget and start from scratch with no software or hardware with which to build the project.</p>
<p><iframe id="doc_63835" src="http://www.scribd.com/embeds/83208178/content?start_page=1&amp;view_mode=list&amp;access_key=key-92kzojb3bbmjggdwazg" frameborder="0" scrolling="no" width="100%" height="600" data-auto-height="true" data-aspect-ratio="1.4468085106383"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalmedia.benatkinson.org.uk/?feed=rss2&#038;p=481</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Research and Development 1</title>
		<link>http://www.digitalmedia.benatkinson.org.uk/?p=476</link>
		<comments>http://www.digitalmedia.benatkinson.org.uk/?p=476#comments</comments>
		<pubDate>Wed, 29 Feb 2012 14:47:06 +0000</pubDate>
		<dc:creator>Ben Atkinson</dc:creator>
				<category><![CDATA[Project Paperwork]]></category>

		<guid isPermaLink="false">http://www.digitalmedia.benatkinson.org.uk/?p=476</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><iframe id="doc_4308" src="http://www.scribd.com/embeds/83195078/content?start_page=1&amp;view_mode=list&amp;access_key=key-7w3r50lleaov4didq9b" frameborder="0" scrolling="no" width="100%" height="600" data-auto-height="true" data-aspect-ratio="0.707514450867052"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalmedia.benatkinson.org.uk/?feed=rss2&#038;p=476</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Level Two: A Maze</title>
		<link>http://www.digitalmedia.benatkinson.org.uk/?p=471</link>
		<comments>http://www.digitalmedia.benatkinson.org.uk/?p=471#comments</comments>
		<pubDate>Thu, 23 Feb 2012 16:13:54 +0000</pubDate>
		<dc:creator>Ben Atkinson</dc:creator>
				<category><![CDATA[aesthetics]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Technical Considerations]]></category>

		<guid isPermaLink="false">http://www.digitalmedia.benatkinson.org.uk/?p=471</guid>
		<description><![CDATA[Now that I&#8217;ve got the bare bones of level one sorted, in terms of asthetics and the drag and drop features, it&#8217;s time to turn my head to the workings on level two. In order to create a second level for my app, I went through a number of the same processes I had done <a href="http://www.digitalmedia.benatkinson.org.uk/?p=471"> read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" style="padding-right: 1em; padding-bottom: 1em;" src="http://media.comicvine.com/uploads/6/67238/1350128-dracula_bela_lugosi_super.jpg" alt="" width="202" height="255" />Now that I&#8217;ve got the bare bones of level one sorted, in terms of asthetics and the drag and drop features, it&#8217;s time to turn my head to the workings on level two. In order to create a second level for my app, I went through a number of the same processes I had done for level one. I thought about different ideas and at first considered re-using the drag and drop features of level one to place the correct foods for the healthy body in one basket and unhealthy ones in another.</p>
<p>After taking a step back from that idea, I realised that it was very similar to the way level one worked and users of the app might be get bored quite quickly with that set up. The second Idea that I had was to create some kind of maze game. Now with this idea, the player would need to navigate their way around a maze with their finger on the player to drag him to where they need to go. Within the maze there are several good foodstuffs and bad foodstuffs which the player will come across. The idea is that the user will get out of the maze in the quickest time and find four healthy foods along the way. If they choose the bad foods they loose a life and a portion of their score.</p>
<p><span id="more-471"></span></p>
<p>The charecter for this second level of the app, will be Count Dracula (continuing the Frankenstein charecter theme) and the user will have to guide him around the maze to find the foods of their choosing. I wanted to create some kind of a link between levels one and two and decided that the character would be the best way to do this!</p>
<p>In order to think more about my design for level two, I considered different kinds of maze games. I found these examples online of the kind of structure I would be aiming for.</p>
<div class="wp-caption alignnone" style="width: 344px"><img class="  " src="http://a1.mzstatic.com/us/r1000/015/Purple/c2/ab/f9/mzl.mufxlxww.320x480-75.jpg" alt="" width="334" height="480" />   </dt>
</dl>
<div class="mceTemp">
<dl id="" class="wp-caption alignnone" style="width: 510px;">
<dt class="wp-caption-dt"><img src="http://farm8.staticflickr.com/7175/6624321707_204efbb42b.jpg" alt="" width="500" height="375" /><p class="wp-caption-text">This shows the look that I would be going for, and a similar idea for the user too. Here the user has to catch a number of cats, where as I&#39;ll be asking them to find foods.</p></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalmedia.benatkinson.org.uk/?feed=rss2&#038;p=471</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Way Level One Looks&#8230;</title>
		<link>http://www.digitalmedia.benatkinson.org.uk/?p=451</link>
		<comments>http://www.digitalmedia.benatkinson.org.uk/?p=451#comments</comments>
		<pubDate>Sat, 18 Feb 2012 23:27:18 +0000</pubDate>
		<dc:creator>Ben Atkinson</dc:creator>
				<category><![CDATA[aesthetics]]></category>

		<guid isPermaLink="false">http://www.digitalmedia.benatkinson.org.uk/?p=451</guid>
		<description><![CDATA[That&#8217;s what the app is looking like right now. I&#8217;ve spent most of the weekend working on the design for the interface and any problems that came up with the images I&#8217;d drawn out in sketch form earlier this week. The first thing I had to do, was to scan in all the images that <a href="http://www.digitalmedia.benatkinson.org.uk/?p=451"> read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://s366326030.websitehome.co.uk/wordpress/wp-content/uploads/2012/02/Secondshot.jpg"><img class="aligncenter size-large wp-image-453" title="Secondshot" src="http://s366326030.websitehome.co.uk/wordpress/wp-content/uploads/2012/02/Secondshot-1024x575.jpg" alt="" width="620" height="348" /></a></p>
<p>That&#8217;s what the app is looking like right now. I&#8217;ve spent most of the weekend working on the design for the interface and any problems that came up with the images I&#8217;d drawn out in sketch form earlier this week.</p>
<p><span id="more-451"></span></p>
<p>The first thing I had to do, was to scan in all the images that I&#8217;d drawn by hand and recreate the charecters of Doctor Frankenstein and his monster in flash. Having done this quite quickly, by using curves, lines and fills, I started to get an idea of the style I wanted for the game. As I previously mentioned I wanted it to look a lot like the &#8220;Angry Birds&#8221; app, mainly because that app is colourful and inviting to children and adults alike.</p>
<p>With this in mind, I wanted to create some bold images and styles which might reflect this kind of design. I&#8217;m very happy with what I&#8217;ve reached above, however I had to overcome designing the table in an isometric way, even though my software does not support 3D. That caused quite a problem when bringing in the monster, as he can&#8217;t sit straight on. However, with him being bigger than the doctor he can almost sit on the edge of the table and still seem quite realistic.</p>
<p>For a time, I had a problem with the designs I&#8217;d created. What was happening, was that I&#8217;d created what I thought were larger images in flash and when I came to export them as .jpgs they were ending up really small. It took me longer to work out how to export as jpg at the right size than to create the origianal images. That suggests to me that in future I won&#8217;t be using flash to design!</p>
<p><a href="http://s366326030.websitehome.co.uk/wordpress/wp-content/uploads/2012/02/firstshot.jpg"><img class="aligncenter size-large wp-image-452" title="firstshot" src="http://s366326030.websitehome.co.uk/wordpress/wp-content/uploads/2012/02/firstshot-1024x575.jpg" alt="" width="620" height="348" /></a></p>
<p>In this shot you can see the game without the monster present. It&#8217;s easier for me to point out my initial problems with the images. Because they were coming out so small, the lines of each body part and the professor were more or less undefined. Some of the elements faded into the background and the proffessor didn&#8217;t look real. I&#8217;d put a lot of definition into things like the large intestine and it wasn&#8217;t showing up. With that in mind I went back into the flash file and changed the weight of each line up by five strokes. That gave me a lot more definition and made the images look cleaner.</p>
<p><a href="http://s366326030.websitehome.co.uk/wordpress/wp-content/uploads/2012/02/ThirdShot.jpg"><img class="aligncenter size-large wp-image-454" title="ThirdShot" src="http://s366326030.websitehome.co.uk/wordpress/wp-content/uploads/2012/02/ThirdShot-1024x575.jpg" alt="" width="620" height="348" /></a></p>
<p>This final screenshot, shows the game software when I was positioning and trying to work out what I would do with the monster. It&#8217;s nice to have a design interface (being more of a designer myself) when working with elements like the design of the app and how it looks. It&#8217;s my plan to work on the first menu and splash screen tomorrow before moving onto more work with level one and level two.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalmedia.benatkinson.org.uk/?feed=rss2&#038;p=451</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solving Simple Problems</title>
		<link>http://www.digitalmedia.benatkinson.org.uk/?p=437</link>
		<comments>http://www.digitalmedia.benatkinson.org.uk/?p=437#comments</comments>
		<pubDate>Wed, 15 Feb 2012 21:33:34 +0000</pubDate>
		<dc:creator>Ben Atkinson</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Early App Tests]]></category>
		<category><![CDATA[Technical Considerations]]></category>

		<guid isPermaLink="false">http://www.digitalmedia.benatkinson.org.uk/?p=437</guid>
		<description><![CDATA[About a week ago, when I was still working on the drag and drop feature on my game I realised how important it is to check for simple errors in the coding. Using a series of tutorials and forum posts on how to craft a drag and drop inventory in Construct 2, I coded each <a href="http://www.digitalmedia.benatkinson.org.uk/?p=437"> read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 304px"><img class="  " style="padding-right: 1em;" src="http://www.unityscript.com/lessons1/lessons/images/10_Variable_names_and_type/boolean_Type.png" alt="" width="294" height="299" /><p class="wp-caption-text">Here&#39;s an example of a boolean value in Java Script, the kind of raw code that goes into my drag and drop feature.</p></div>
<p>About a week ago, when I was still working on the drag and drop feature on my game I realised how important it is to check for simple errors in the coding. Using a series of tutorials and forum posts on how to craft a drag and drop inventory in Construct 2, I coded each of the elements so that they could be picked up and dragged.</p>
<p>The next problem with the coding that I had to overcome, was making each of the elements which are dragged, return to their original position when they&#8217;re not dropped in the right place. So if a body part is dropped on the wrong place in the body, it automatically jumps back to the inventory so that the user can have another go. Similarly if the body part is dropped over empty space, nowhere near the body the same thing would happen.</p>
<p><span id="more-437"></span></p>
<p>Using a boolean value to determined whether the drag was on or off, (on if clicked on and mouse button held down, off if not) I coded a return to the same location as on start up. So when drag is off, and the element is not over a correct landing point, it will return to the original location. This was a nice and easy way to ensure each element returned when not dropped in the correct place and it avoided a lot of complicated coding. Effectively in the background, the system will constantly be checking if drag is off and noting where the element is at any specific point. I can set the correct drop points and the system will do the rest.</p>
<p>When I ran the game / app to test what I thought was the completed drag and drop feature, I realised that while the drag and drop worked for some of the elements the coding was almost working in reverse. While the brain dropped and returned just as I wanted, the other elements seemed to return when dropped over a correct drop point and stick when anywhere else. I couldn&#8217;t work out why for the life of me this was happening and went back to the code to try and work it out.</p>
<p>Being unable to see why the game / app was throwing up this kind of malfunction, I took a few steps back from the project and worked on my sketches for the design and layout of the app. When I came back to the coding aspect this afternoon, I noticed a simply flaw with the things I had coded. Each piece of code in Construct can also be reversed, giving you a whole new world of coding options, so you can have when left mouse down and in the same way when left mouse not down. To do this, you simply add an inverse symbol the code layout for that expression. What had happened with my drag and drop, was that for the brain I&#8217;d set that inverse and on the other elements I hadn&#8217;t. That was the only reason for the drag and drop not working for every element!</p>
<p>Solving this problem taught me to look out for the simple errors in coding that might hinder my process. While this was a relatively easy problem to solve, it wasted a lot of time that I could have put to better use on other parts of the project. From now on I will remind myself to recheck everything I&#8217;ve done at the end of a coding session, making sure that all the expressions and variables are correct.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalmedia.benatkinson.org.uk/?feed=rss2&#038;p=437</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The First Sketches</title>
		<link>http://www.digitalmedia.benatkinson.org.uk/?p=401</link>
		<comments>http://www.digitalmedia.benatkinson.org.uk/?p=401#comments</comments>
		<pubDate>Wed, 08 Feb 2012 14:56:22 +0000</pubDate>
		<dc:creator>Ben Atkinson</dc:creator>
				<category><![CDATA[aesthetics]]></category>
		<category><![CDATA[Story Ideas]]></category>

		<guid isPermaLink="false">http://www.digitalmedia.benatkinson.org.uk/?p=401</guid>
		<description><![CDATA[Over the past two nights, I have been working on sketches for the layout of my app and the content of the various parts of the game from which I will be able to create a rough demo. It&#8217;s important for me to work on some initial coding for this app, making use of my <a href="http://www.digitalmedia.benatkinson.org.uk/?p=401"> read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p align="justify">Over the past two nights, I have been working on sketches for the layout of my app and the content of the various parts of the game from which I will be able to create a rough demo. It&#8217;s important for me to work on some initial coding for this app, making use of my sketches, so that I can get an understanding of how certain parts of the code work.</p>
<p align="justify">The first image I created was this layout of a human body (outline only) and some main body parts (heart, lungs etc. etc.) which I will use to make the first evolution of the app, a way of testing the drag and drop features.</p>
<p style="text-align: center;"><a href="http://s366326030.websitehome.co.uk/wordpress/wp-content/uploads/2012/02/test-sketch.jpg"><img class="aligncenter size-large wp-image-402" title="First Test Sketch" src="http://s366326030.websitehome.co.uk/wordpress/wp-content/uploads/2012/02/test-sketch-1024x851.jpg" alt="" width="608" height="505" /></a></p>
<p align="justify"><span id="more-401"></span></p>
<p align="justify">I&#8217;ve also done some sketches of the way in which the final app with look. Taking some inspiration from the popular app &#8220;Angry Birds,&#8221; I will look to make my app as asthetically pleasing as Angry Birds is. I think one of the big sucesses about Angry Birds, is that it&#8217;s not only simple but it also looks good. The app has some kind of shine that makes it stand out and to a certain extent jump right out of the screen when you start to play. It makes you want to continue playing.</p>
<p align="justify">Here&#8217;s an example of how I&#8217;d like the first level to look, the other levels of the game (of which they&#8217;ll be four) will be a variation on this theme:</p>
<p align="justify"><img class="aligncenter" src="https://lh4.googleusercontent.com/-Qwc9Nh_Uqmw/Tz0gyN8KygI/AAAAAAAAArE/Gm706Qj0Vak/s720/gamelayout.jpg" alt="" width="720" height="504" /></p>
<p align="justify">Here you can quite clearly see how the game / app would work for school children interested in using it. The layout and design should be interesting to them and at the same time educational. It&#8217;s likely that the professor character will be animated in some small way to give some additional movement to the project.</p>
<p style="text-align: center;">
]]></content:encoded>
			<wfw:commentRss>http://www.digitalmedia.benatkinson.org.uk/?feed=rss2&#038;p=401</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testing and Coding the Drag and Drop</title>
		<link>http://www.digitalmedia.benatkinson.org.uk/?p=413</link>
		<comments>http://www.digitalmedia.benatkinson.org.uk/?p=413#comments</comments>
		<pubDate>Sat, 04 Feb 2012 11:30:21 +0000</pubDate>
		<dc:creator>Ben Atkinson</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Early App Tests]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Technical Considerations]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[body]]></category>
		<category><![CDATA[boolean]]></category>
		<category><![CDATA[brain]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[construct]]></category>
		<category><![CDATA[contstruct 2]]></category>
		<category><![CDATA[drag and drop]]></category>
		<category><![CDATA[early app tests]]></category>
		<category><![CDATA[elements]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[heart]]></category>
		<category><![CDATA[science]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[variables]]></category>

		<guid isPermaLink="false">http://www.digitalmedia.benatkinson.org.uk/?p=413</guid>
		<description><![CDATA[Last night, I worked on coding the main frame of my finished app, the drag and drop features. In Construct 2 I found tutorials and work from other designers who had created drag and drop features to work out what events I needed to happen and the click, hold down and release of the left <a href="http://www.digitalmedia.benatkinson.org.uk/?p=413"> read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Last night, I worked on coding the main frame of my finished app, the drag and drop features. In Construct 2 I found tutorials and work from other designers who had created drag and drop features to work out what events I needed to happen and the click, hold down and release of the left mouse key.</p>
<p>At first I just used a variable called &#8220;dragged&#8221; and set it to zero or one depending on whether the mouse button was clicked. So, if the the left mouse button was clicked on the heart for example, dragged would change to one (or positive) and then if left mouse button is held down and dragged=1, the heart element would lock to the mouse point. Then if the left mouse button is released, the variable dragged is returned to zero and the whole process can start again. That processed gave me something like the image you see below, however it wasn&#8217;t a full-proof solution as I noticed the elements collided with each other and I worked out that the coding was messy and some of the elements were reading code from other elements instead of being stand-alone.</p>
<div id="attachment_414" class="wp-caption aligncenter" style="width: 538px"><a href="http://s366326030.websitehome.co.uk/wordpress/wp-content/uploads/2012/02/First_Game.jpg"><img class=" wp-image-414 " title="First_Game" src="http://s366326030.websitehome.co.uk/wordpress/wp-content/uploads/2012/02/First_Game.jpg" alt="" width="528" height="367" /></a><p class="wp-caption-text">The first test of the drag and drop features in my app, as you can see the elements were colliding and the Human Body on a desk was suddenly replaced with a second instance of the kidney (the body part I was dragging at the time).</p></div>
<p><span id="more-413"></span></p>
<p>To solve this problem with the elements colliding, reading the wrong code and reproducing themselves, I turned back to the tutorials provided with Construct 2, to work out what other options were available to me when coding a more full-proof alternative. I noticed that any coded instance (such as on left mouse click) can be inverted to do the opposite. So, &#8220;on left mouse click&#8221; becomes &#8220;on left mouse release&#8221; and this gives Construct so much more flexibility. I also decided to create a boolean value, one which can either be true or false. So dragged became true or false (on or off) depending on if the mouse was clicked and held down on any element. Of course I still coded the element to move with the mouse cursor, but for added security used a variable checker to ensure that the boolean variable was true before any dragging happened. And then, as you might expect, when the mouse button was released the boolean value became false again and the process can start all over again.</p>
<p>That might sound complicated, and it is a lot of code for a simple drag and drop. However, much of this is the same code repeated for each element and is essential to the main frame of my app, so once I&#8217;ve got this part of the coding confirmed I&#8217;ll have a lot more time to work on the layout and the other coded elements. Here&#8217;s the code for the drag and drop:</p>
<div id="attachment_418" class="wp-caption aligncenter" style="width: 500px"><a href="http://s366326030.websitehome.co.uk/wordpress/wp-content/uploads/2012/02/drag_drop_code.jpg"><img class=" wp-image-418 " title="drag_drop_code" src="http://s366326030.websitehome.co.uk/wordpress/wp-content/uploads/2012/02/drag_drop_code.jpg" alt="" width="490" height="394" /></a><p class="wp-caption-text">As you can see, quite a lot of coding goes into a simple drag and drop feature.</p></div>
<p>The next thing I had to do, with my drag and drop feature now working, was to think about what would happen if any of the body parts were dropped on the right or wrong part of the human body. This was the second most important element to my app and I came up with the idea of creating a number of small square objects (the same colour as the body itself) which would then be unseen on the actual body and if any of the elements collide a certain line of text would display. I created two lines of text, one for the right answer and one for the wrong, and set about working with the brain (it being place on the head, or in the groin region.) In Construct 2 you can toggle visible on and off, so I created a system element which set both texts off at the start of the app, and then if the brain was dropped on either area of the body, I set either the right or wrong text to display. I then thought about how I could get rid of the text, and decided to set another system element to wait five seconds before making the text invisible again so the process can start all over. Here&#8217;s the coding for that:</p>
<div id="attachment_419" class="wp-caption aligncenter" style="width: 486px"><a href="http://s366326030.websitehome.co.uk/wordpress/wp-content/uploads/2012/02/Text_Visable_Code.jpg"><img class=" wp-image-419 " title="Text_Visable_Code" src="http://s366326030.websitehome.co.uk/wordpress/wp-content/uploads/2012/02/Text_Visable_Code.jpg" alt="" width="476" height="205" /></a><p class="wp-caption-text">Here you can see my code for the visible and not visible text depending on where the brain is dropped.</p></div>
<p>So, having coded a very rudimentary version of my two key elements, I&#8217;ve gained the knowledge of how to set up a drag and drop feature and also learned what works and what doesn&#8217;t. In future, I&#8217;d try to use invisible elements to make the drop locations as you can see the pink squares, and think of a different way of showing the text and the visible and invisible isn&#8217;t totally reliable. If you want to have a go, here&#8217;s a demo of the basic features I created last night. Drag and drop the brain onto the head and the groin to see what happens:</p>
<p><iframe src="http://u63224117@s366326030.websitehome.co.uk/Digital%20Media/TestDrag/index.html" width="600" height="500"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalmedia.benatkinson.org.uk/?feed=rss2&#038;p=413</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Work In Progress Presentation</title>
		<link>http://www.digitalmedia.benatkinson.org.uk/?p=404</link>
		<comments>http://www.digitalmedia.benatkinson.org.uk/?p=404#comments</comments>
		<pubDate>Sat, 04 Feb 2012 11:17:00 +0000</pubDate>
		<dc:creator>Ben Atkinson</dc:creator>
				<category><![CDATA[Project Paperwork]]></category>
		<category><![CDATA[audience]]></category>
		<category><![CDATA[idea]]></category>
		<category><![CDATA[paperwork]]></category>
		<category><![CDATA[powerpoint]]></category>
		<category><![CDATA[presentation]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[research]]></category>
		<category><![CDATA[work in progress]]></category>

		<guid isPermaLink="false">http://www.digitalmedia.benatkinson.org.uk/?p=404</guid>
		<description><![CDATA[Here&#8217;s a presentation I created and presented on my work in progress, based around the initial proposal this gives further information on my inspiration and initial research:]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a presentation I created and presented on my work in progress, based around the initial proposal this gives further information on my inspiration and initial research:</p>
<p><object id="prezi_5a9036eb72191192180e8f15b61257d6d22e3483" width="600" height="400" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="flashvars" value="prezi_id=5a9036eb72191192180e8f15b61257d6d22e3483&amp;lock_to_path=0&amp;color=ffffff&amp;autoplay=no&amp;autohide_ctrls=0" /><param name="src" value="http://prezi.com/bin/preziloader.swf" /><embed id="prezi_5a9036eb72191192180e8f15b61257d6d22e3483" width="550" height="400" type="application/x-shockwave-flash" src="http://prezi.com/bin/preziloader.swf" allowfullscreen="true" allowscriptaccess="always" flashvars="prezi_id=5a9036eb72191192180e8f15b61257d6d22e3483&amp;lock_to_path=0&amp;color=ffffff&amp;autoplay=no&amp;autohide_ctrls=0" /></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalmedia.benatkinson.org.uk/?feed=rss2&#038;p=404</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

