<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><generator uri="https://jekyllrb.com/" version="4.4.1">Jekyll</generator><link href="https://honkbarkstudios.com/feed.xml" rel="self" type="application/atom+xml" /><link href="https://honkbarkstudios.com/" rel="alternate" type="text/html" hreflang="en" /><updated>2026-12-02T16:14:14+01:00</updated><id>https://honkbarkstudios.com/feed.xml</id><title type="html">Honkbark Studios</title><subtitle>Honkbark Studios is an indie game studio from Jönköping, Sweden. Makers of Friendsheep.</subtitle><entry><title type="html">Saying good bye to Friendsheep on Google Play!</title><link href="https://honkbarkstudios.com/developer-blog/saying-good-bye-to-friendsheep-on-google-play/" rel="alternate" type="text/html" title="Saying good bye to Friendsheep on Google Play!" /><published>2021-10-31T11:17:43+01:00</published><updated>2021-10-31T11:17:43+01:00</updated><id>https://honkbarkstudios.com/developer-blog/saying-good-bye-to-friendsheep-on-google-play</id><content type="html" xml:base="https://honkbarkstudios.com/developer-blog/saying-good-bye-to-friendsheep-on-google-play/"><![CDATA[<p>We&#8217;ve decided to discontinue Friendsheep on Google play. Thank you for playing, Everyone!</p>]]></content><author><name></name></author><category term="Game development" /><summary type="html"><![CDATA[We’ve decided to discontinue Friendsheep on Google play. Thank you for playing, Everyone!]]></summary></entry><entry><title type="html">The end of the run for Friendsheep on iOS (Still available on Google Play)</title><link href="https://honkbarkstudios.com/developer-blog/the-end-of-the-run-for-friendsheep-on-ios-still-available-on-google-play/" rel="alternate" type="text/html" title="The end of the run for Friendsheep on iOS (Still available on Google Play)" /><published>2019-08-05T13:04:13+02:00</published><updated>2019-08-05T13:04:13+02:00</updated><id>https://honkbarkstudios.com/developer-blog/the-end-of-the-run-for-friendsheep-on-ios-still-available-on-google-play</id><content type="html" xml:base="https://honkbarkstudios.com/developer-blog/the-end-of-the-run-for-friendsheep-on-ios-still-available-on-google-play/"><![CDATA[<p>Friendsheep has met its final day on the iOS app store due to updated terms and conditions. Apple is cleaning the app store from apps that has not been updated for a while and does not longer function as intended on new ios versions and iPhones.</p>
<p>We have the option to update the game and post a new version. But we have decided that it is not something we are going to do based on people playing it and how much revenue it is generating.</p>
<p><del>The game is still available on Google Play.</del></p>]]></content><author><name></name></author><category term="Friendsheep" /><summary type="html"><![CDATA[Friendsheep has met its final day on the iOS app store due to updated terms and conditions. Apple is cleaning the app store from apps that has not been updated for a while and does not longer function as intended on new ios versions and iPhones. We have the option to update the game and…]]></summary></entry><entry><title type="html">Released a sideproject called Screenbar for macOS</title><link href="https://honkbarkstudios.com/developer-blog/released-sideproject-called-screenbar-macos/" rel="alternate" type="text/html" title="Released a sideproject called Screenbar for macOS" /><published>2018-01-18T17:17:21+01:00</published><updated>2018-01-18T17:17:21+01:00</updated><id>https://honkbarkstudios.com/developer-blog/released-sideproject-called-screenbar-macos</id><content type="html" xml:base="https://honkbarkstudios.com/developer-blog/released-sideproject-called-screenbar-macos/"><![CDATA[<p>When releasing <a href="/games/friendsheep/">Friendsheep</a> we needed to take screenshots of it while playing it. That&#8217;s when <a href="https://itunes.apple.com/us/app/screenbar/id1329392611?ls=1&amp;mt=8">Screenbar</a> came to life. It&#8217;s a menubar application for macOS that automatically takes screenshots with a user defined number of seconds between.</p>
<p>Screenbar lives in your menubar, to the right side where the clock is situated. When clicking on the camera icon you can set</p>
<ul>
<li>Time between screenshots</li>
<li>Toggle if you want to hear the built in screenshot sound</li>
<li>You can open the folder where the screenshots are saved.</li>
</ul>
<p>Since day one Screenbar has sold so it turns out it was not only us who needed help with automatic screenshots. We are very happy that people are using it!</p>
<p><a href="/wp-content/uploads/2018/01/screenbar-mainwindow21.png"><img class="alignnone size-full wp-image-1108" src="/wp-content/uploads/2018/01/screenbar-mainwindow21.png" alt="" width="511" height="218" srcset="/wp-content/uploads/2018/01/screenbar-mainwindow21.png 511w, /wp-content/uploads/2018/01/screenbar-mainwindow21-300x128.png 300w" sizes="(max-width: 511px) 100vw, 511px" /></a></p>]]></content><author><name></name></author><category term="Random thingy" /><summary type="html"><![CDATA[When releasing Friendsheep we needed to take screenshots of it while playing it. That’s when Screenbar came to life. It’s a menubar application for macOS that automatically takes screenshots with a user defined number of seconds between. Screenbar lives in your menubar, to the right side where the clock is situated. When clicking on the camera…]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://honkbarkstudios.com/wp-content/uploads/2018/01/screenbar-v21.png" /><media:content medium="image" url="https://honkbarkstudios.com/wp-content/uploads/2018/01/screenbar-v21.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">TimeWise</title><link href="https://honkbarkstudios.com/developer-blog/timewise/" rel="alternate" type="text/html" title="TimeWise" /><published>2017-12-05T12:13:02+01:00</published><updated>2017-12-05T12:13:02+01:00</updated><id>https://honkbarkstudios.com/developer-blog/timewise</id><content type="html" xml:base="https://honkbarkstudios.com/developer-blog/timewise/"><![CDATA[<p>Recently a game called <a href="https://itunes.apple.com/se/app/timewise-tidernas-quiz/id1225893707?ls=1&amp;mt=8">TimeWise</a> was released by Brickstack. We here at Honkbark Studios was hired to help them with development questions.</p>
<p>In the game TimeWise you can challenge your friends in a quiz about time &#8211; When did an event occur? Play one on one or team up and put your knowledge to the test in TimeWise tournaments. Who know most about time at work, at school or in your football team? &#8211; <a href="http://www.timewise-game.com/" class="broken_link">TimeWise</a></p>
<p>Now when the game is released we want to say good job to <a href="http://brickstack.se/" class="broken_link">Brickstack</a>! And the best of luck with the Android version and your upcoming games!</p>
<p>&nbsp;</p>]]></content><author><name></name></author><category term="Game development" /><summary type="html"><![CDATA[Recently a game called TimeWise was released by Brickstack. We here at Honkbark Studios was hired to help them with development questions. In the game TimeWise you can challenge your friends in a quiz about time – When did an event occur? Play one on one or team up and put your knowledge to the…]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://honkbarkstudios.com/wp-content/uploads/2017/12/timewise.png" /><media:content medium="image" url="https://honkbarkstudios.com/wp-content/uploads/2017/12/timewise.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Orbit around focused GameObject in Linux Mint</title><link href="https://honkbarkstudios.com/developer-blog/orbit-around-focused-gameobject-linux-mint/" rel="alternate" type="text/html" title="Orbit around focused GameObject in Linux Mint" /><published>2017-11-30T17:11:58+01:00</published><updated>2017-11-30T17:11:58+01:00</updated><id>https://honkbarkstudios.com/developer-blog/orbit-around-focused-gameobject-linux-mint</id><content type="html" xml:base="https://honkbarkstudios.com/developer-blog/orbit-around-focused-gameobject-linux-mint/"><![CDATA[<p>To orbit around focused GameObject when running Unity on Linux mint you might need to change the <strong>Special key to move and resize windows </strong>setting first.</p>
<p>The keyboard shortcut to use orbit in<a href="https://docs.unity3d.com/2017.3/Documentation/Manual/SceneViewNavigation.html"> Unity3D is Alt+Left mouse button</a>. However that Alt key is by default set to be used for moving windows on Linux Mint 18 Cinnamon. This setting will collide with the Orbit setting.</p>
<p>To change this go to <strong>Preferences -&gt; Windows -&gt; Behavior</strong> and set <strong>Special key to move and resize windows</strong> to something other than Alt. I disabled this setting since I don&#8217;t use it very much.</p>
<p><figure id="attachment_1051" aria-describedby="caption-attachment-1051" style="width: 800px" class="wp-caption alignnone"><a href="/wp-content/uploads/2017/11/special-key-to-move-and-resize-windows.png"><img class="wp-image-1051 size-full" src="/wp-content/uploads/2017/11/special-key-to-move-and-resize-windows.png" alt="special key to move and resize windows - Orbit around focused GameObject" width="800" height="627" srcset="/wp-content/uploads/2017/11/special-key-to-move-and-resize-windows.png 800w, /wp-content/uploads/2017/11/special-key-to-move-and-resize-windows-300x235.png 300w, /wp-content/uploads/2017/11/special-key-to-move-and-resize-windows-768x602.png 768w" sizes="(max-width: 800px) 100vw, 800px" /></a><figcaption id="caption-attachment-1051" class="wp-caption-text">special key to move and resize windows &#8211; Orbit around focused GameObject</figcaption></figure></p>
<p>Thank you to <a href="https://forums.linuxmint.com/viewtopic.php?t=183025" class="broken_link">JosephM for pointing this out</a>. If you are using another dist using <a href="https://forum.unity.com/threads/cant-orbit-around-focused-gameobject.410683/">CompizConfig</a> might help.</p>]]></content><author><name></name></author><category term="Unity3D" /><summary type="html"><![CDATA[To orbit around focused GameObject when running Unity on Linux mint you might need to change the Special key to move and resize windows setting first. The keyboard shortcut to use orbit in Unity3D is Alt+Left mouse button. However that Alt key is by default set to be used for moving windows on Linux Mint…]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://honkbarkstudios.com/wp-content/uploads/2017/11/Orbit-around-focused-GameObject.png" /><media:content medium="image" url="https://honkbarkstudios.com/wp-content/uploads/2017/11/Orbit-around-focused-GameObject.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Fiddling with Virtual Reality</title><link href="https://honkbarkstudios.com/developer-blog/virtual-reality/" rel="alternate" type="text/html" title="Fiddling with Virtual Reality" /><published>2017-03-21T21:50:34+01:00</published><updated>2017-03-21T21:50:34+01:00</updated><id>https://honkbarkstudios.com/developer-blog/virtual-reality</id><content type="html" xml:base="https://honkbarkstudios.com/developer-blog/virtual-reality/"><![CDATA[<p>We have been fiddling with some Virtual reality over at <a href="http://www.spoton.se/">Spot On</a>.  We&#8217;ve been building an environment in Unity3D to jump around in with the HTC Vive.</p>
<p>In this post we want to shed some light on what we are up to; experimenting with Virtual reality. The image above is from last weeks Unity session.</p>]]></content><author><name></name></author><category term="Game development" /><category term="Random thingy" /><summary type="html"><![CDATA[We have been fiddling with some Virtual reality over at Spot On. We’ve been building an environment in Unity3D to jump around in with the HTC Vive. In this post we want to shed some light on what we are up to; experimenting with Virtual reality. The image above is from last weeks Unity session.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://honkbarkstudios.com/wp-content/uploads/2017/03/Virtual-Reality-unity3d-htc-vive.png" /><media:content medium="image" url="https://honkbarkstudios.com/wp-content/uploads/2017/03/Virtual-Reality-unity3d-htc-vive.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Friendsheep has reached 500 downloads</title><link href="https://honkbarkstudios.com/developer-blog/friendsheep-reached-500-downloads/" rel="alternate" type="text/html" title="Friendsheep has reached 500 downloads" /><published>2016-06-24T11:48:43+02:00</published><updated>2016-06-24T11:48:43+02:00</updated><id>https://honkbarkstudios.com/developer-blog/friendsheep-reached-500-downloads</id><content type="html" xml:base="https://honkbarkstudios.com/developer-blog/friendsheep-reached-500-downloads/"><![CDATA[<p>Hi! Thank you everyone who has downloaded and played <a href="/games/friendsheep/">Friendsheep</a>! We have reach 500 downloads! And that is far more then we expected when releasing this game. Since we consider it our Hello , World! of the gaming market. Programmers will understand what hello, world! is, others could read up on it on <a href="https://en.wikipedia.org/wiki/%22Hello,_World!%22_program">wikipedia</a>.</p>
<p>If you&#8217;d like to help us improving the download statistic you can get Friendsheep on the <a href="https://itunes.apple.com/app/friendsheep/id1002907469">App store</a> or <a href="https://play.google.com/store/apps/details?id=com.honkbarkstudios.friendsheep" class="broken_link">Google Play</a>.</p>]]></content><author><name></name></author><category term="Friendsheep" /><category term="Game development" /><summary type="html"><![CDATA[Hi! Thank you everyone who has downloaded and played Friendsheep! We have reach 500 downloads! And that is far more then we expected when releasing this game. Since we consider it our Hello , World! of the gaming market. Programmers will understand what hello, world! is, others could read up on it on wikipedia. If…]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://honkbarkstudios.com/wp-content/uploads/2016/06/500downloadssmall.png" /><media:content medium="image" url="https://honkbarkstudios.com/wp-content/uploads/2016/06/500downloadssmall.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">TapController Unity3d tutorial</title><link href="https://honkbarkstudios.com/developer-blog/tapcontroller-unity3d-tutorial/" rel="alternate" type="text/html" title="TapController Unity3d tutorial" /><published>2016-06-07T17:55:51+02:00</published><updated>2016-06-07T17:55:51+02:00</updated><id>https://honkbarkstudios.com/developer-blog/tapcontroller-unity3d-tutorial</id><content type="html" xml:base="https://honkbarkstudios.com/developer-blog/tapcontroller-unity3d-tutorial/"><![CDATA[<p>In this TapController Unity3d tutorial we&#8217;ll create a script that will work so that when the player taps the screen, a force is added to a GameObject. This technique is used in <a href="/games/friendsheep/">Friendsheep</a>.</p>
<p>This code is open sourced, and you can download it from the <a href="https://github.com/crilleengvall/UnityExamples">unity examples repository.</a> This is the finished <a href="https://github.com/crilleengvall/UnityExamples/blob/master/Assets/Examples/TapController/TapController.cs">TapController.cs.</a></p>
<p>As an example have a look at this video. Everytime a player taps the screen on his or hers android or iphone, the sheep get new force added.</p>
<p><iframe src="https://www.youtube.com/embed/twV3eEGj6qQ" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe></p>
<h3>1. Add GameObjects</h3>
<p>Start of by adding two cubes from the menu <strong>GameObject</strong> -&gt; <strong>3D Object</strong> -&gt; <strong>Cube. </strong>We&#8217;ll use one of them as grounds and one of them as our gameobject which we&#8217;ll add our tap controller to. Lets call this one TapCube from now on.<br />
The TapCube also need a rigidbody so add this as well.</p>
<p>The scene now looks like this:</p>
<p><figure id="attachment_913" aria-describedby="caption-attachment-913" style="width: 854px" class="wp-caption alignnone"><a href="/wp-content/uploads/2016/06/Add-scene-TapController-for-Unity3d.png"><img class="size-large wp-image-913" src="/wp-content/uploads/2016/06/Add-scene-TapController-for-Unity3d-854x1024.png" alt="Add scene - TapController for Unity3d" width="854" height="1024" srcset="/wp-content/uploads/2016/06/Add-scene-TapController-for-Unity3d-854x1024.png 854w, /wp-content/uploads/2016/06/Add-scene-TapController-for-Unity3d-250x300.png 250w, /wp-content/uploads/2016/06/Add-scene-TapController-for-Unity3d-768x921.png 768w" sizes="(max-width: 854px) 100vw, 854px" /></a><figcaption id="caption-attachment-913" class="wp-caption-text">Add scene and GameObjects</figcaption></figure></p>
<p>&nbsp;</p>
<h3>2. Add Tap controller script</h3>
<p>Now add a <strong>new script</strong> called <strong>TapController</strong> on <strong>TapCube</strong> and open it in your editor.</p>
<p>Start of the script by <strong>adding two instance variables</strong> called <strong>rigidBody</strong> and <strong>jumpForce</strong>. Making the script look like this:</p>
<pre><code class="cs">using UnityEngine;
using System.Collections;

public class TapController : MonoBehaviour {

    public Rigidbody rigidBody;
    public Vector2 jumpForce = new Vector2(0, 4f);

    void Start () {
		
    }
	
    void Update () {
    }
}</code></pre>
<p>When this is done you also need to <strong>drag the rigidbody of TapCube</strong> <strong>to the rigidBody variable of the TapController</strong> script:</p>
<p><a href="/wp-content/uploads/2016/06/Rigidbody-TapController-for-Unity3d.png"><img class="size-large wp-image-918" src="/wp-content/uploads/2016/06/Rigidbody-TapController-for-Unity3d-1024x640.png" alt="Rigidbody-TapController-for-Unity3d" width="1024" height="640" srcset="/wp-content/uploads/2016/06/Rigidbody-TapController-for-Unity3d-1024x640.png 1024w, /wp-content/uploads/2016/06/Rigidbody-TapController-for-Unity3d-300x188.png 300w, /wp-content/uploads/2016/06/Rigidbody-TapController-for-Unity3d-768x480.png 768w, /wp-content/uploads/2016/06/Rigidbody-TapController-for-Unity3d.png 1078w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></p>
<h3></h3>
<h3>3. Look for user touch</h3>
<p>Create a method in TapController.cs that&#8217;s named <b>UserDidTapOnPhone(). </b>The method will look like this:</p>
<pre><code class="cs">private bool UserDidTapOnPhone() {
    var didTap = false;
    foreach(Touch touch in Input.touches) {
        if(touch.phase == TouchPhase.Began) {
            didTap = true;
        }
    }
    return didTap;
}
</code></pre>
<p>In this method we loop through all the <a href="http://docs.unity3d.com/ScriptReference/Input-touches.html">Input.touches</a> That property returns a list with objects that contains all the touches during last frame. If the touch is <a href="http://docs.unity3d.com/ScriptReference/TouchPhase.html">TouchPhase</a>.Began then the user tapped the screen of the phone, so we return true.</p>
<p>&nbsp;</p>
<h3>4. Add force to GameObject</h3>
<p>Now add a method called <strong>AddForceToGameObject() </strong>looking like this:</p>
<pre><code class="cs">private void AddForceToGameObject() {
    this.rigidBody.velocity = Vector2.zero;
    this.rigidBody.AddForce(this.jumpForce, ForceMode.Impulse);
}
</code></pre>
<p>We are setting the velocity to Vector2.zero because in this tutorial we don&#8217;t need it. You can use it for <a href="http://docs.unity3d.com/ScriptReference/Rigidbody-velocity.html">example</a>:</p>
<p><em>&#8220;A typical example where you would change the velocity is when jumping in a first person shooter, because you want an immediate change in velocity.&#8221;</em></p>
<p>Then we use the AddForce() method on the rigidbody to make the cube go up in the air. As you can se we use ForceMode.Impulse here. Now that this does is a bit harder to grasp.</p>
<p>To quote <a href="http://answers.unity3d.com/questions/696068/difference-between-forcemodeforceaccelerationimpul.html">Clonkex</a> in a thread about it:</p>
<p><em><span class="typ" style="line-height: 1.5;">&#8220;ForceMode</span><span class="pun" style="line-height: 1.5;">.</span><span class="typ" style="line-height: 1.5;">Force</span> <span class="pun" style="line-height: 1.5;">==</span> <span class="typ" style="line-height: 1.5;">Force</span><span class="pln" style="line-height: 1.5;"> per second<br />
</span><span class="typ" style="line-height: 1.5;">ForceMode</span><span class="pun" style="line-height: 1.5;">.</span><span class="typ" style="line-height: 1.5;">Impulse</span> <span class="pun" style="line-height: 1.5;">==</span> <span class="typ" style="line-height: 1.5;">Force</span><span class="pln" style="line-height: 1.5;"> per frame&#8221;</span></em></p>
<p>But to explain why we use Impulse is because if we don&#8217;t, we might experience a &#8220;double jump&#8221;, as if the gameObject got twice the force on only one tap, on the GameObject on Android-phones. But it would work well on iOS devices.</p>
<p>&nbsp;</p>
<h3>5. Putting the two methods in use together</h3>
<p>In the <strong>update method of TapController.cs</strong> you make a <strong>call to UserDidTapOnPhone()</strong>, and if this returns true, <strong>call the AddForceToGameObject()</strong> method. The full class now looks like this:</p>
<p>&nbsp;</p>
<pre><code class="cs">using UnityEngine;
using System.Collections;

public class TapController : MonoBehaviour {

	public Rigidbody rigidBody;
	public Vector2 jumpForce = new Vector2(0, 4f);

	void Update () {
		if (this.UserDidTapOnPhone ()) {
			this.AddForceToGameObject ();
		}
	}

	private void AddForceToGameObject() {
		this.rigidBody.velocity = Vector2.zero;
		this.rigidBody.AddForce(this.jumpForce, ForceMode.Impulse);
	}

	private bool UserDidTapOnPhone() {
		var didTap = false;
		foreach(Touch touch in Input.touches) {
			if(touch.phase == TouchPhase.Began) {
				didTap = true;
			}
		}
		return didTap;
	}
}
</code></pre>
<p>This is a fully functional TapController, you can go ahead and test it on your phone. But to make it even better let&#8217;s continue with excluding taps on menu/ui items and making it work in the editor as well. To make it work in the editor is useful so that we don&#8217;t need to build the game and put in our phone everytime it needs testing.</p>
<p>&nbsp;</p>
<h3>6. Excluding taps on menu- or ui items</h3>
<p>Use <strong>GameObject -&gt; UI -&gt; Button</strong> to add a button to the scene. You can put it anywhere as long as it&#8217;s visible.</p>
<p><figure id="attachment_940" aria-describedby="caption-attachment-940" style="width: 1001px" class="wp-caption alignnone"><a href="/wp-content/uploads/2016/06/EventSystem-TapController-for-Unity3d.png"><img class="size-full wp-image-940" src="/wp-content/uploads/2016/06/EventSystem-TapController-for-Unity3d.png" alt="EventSystem - TapController for Unity3d" width="1001" height="783" srcset="/wp-content/uploads/2016/06/EventSystem-TapController-for-Unity3d.png 1001w, /wp-content/uploads/2016/06/EventSystem-TapController-for-Unity3d-300x235.png 300w, /wp-content/uploads/2016/06/EventSystem-TapController-for-Unity3d-768x601.png 768w" sizes="(max-width: 1001px) 100vw, 1001px" /></a><figcaption id="caption-attachment-940" class="wp-caption-text">EventSystem &#8211; TapController for Unity3d</figcaption></figure></p>
<p>Then go back to TapController.cs and add a new using statement:</p>
<pre><code class="cs">using UnityEngine.EventSystems;
</code></pre>
<p>Now add a method to the class that is called UserTappedOnMenu(), it will look like this:</p>
<pre><code class="cs">private bool UserTappedOnMenu() {
    bool didTapMenu = false;
    if(Input.touchCount &gt; 0) {
        int pointerID = Input.touches[0].fingerId;
        if (EventSystem.current.IsPointerOverGameObject(pointerID))
        {
            didTapMenu = true;
        }
    }
    return didTapMenu;
}</code></pre>
<p>First the code checks if the touchCount is larger than 0, if so, the user has tapped the screen.<br />
Then we get the <a href="http://docs.unity3d.com/ScriptReference/Touch-fingerId.html">fingerId</a>, which is the unique index for the touch, and store it in pointerID.<br />
Then we do the check if this <a href="http://docs.unity3d.com/ScriptReference/EventSystems.EventSystem.IsPointerOverGameObject.html">pointer was over a GameObject in our eventsystem</a> if so, the user tapped our button.</p>
<p>Now it&#8217;s time to use this method in the Update() method:</p>
<pre><code class="cs">void Update () {
    if (this.UserDidTapOnPhone () &amp;&amp; !this.UserTappedOnMenu()) {
        this.AddForceToGameObject ();
    }
}
</code></pre>
<h3></h3>
<p>&nbsp;</p>
<h3>7. Adding functionality to make the tapcontroller work in Unity editor</h3>
<p>Another method needs to be added to TapController.cs for this one. Lets call it UserDidEditorTap():</p>
<pre><code class="cs">private bool UserDidEditorTap() {
    var didEditorTap = false;
    if(Application.isEditor &amp;&amp; Input.GetKeyUp(KeyCode.Space)) {
        didEditorTap = true;
    }
    return didEditorTap;
}
</code></pre>
<p>This code checks if we are running the game in the editor, and if the user has pushed Space. Then returns the result as a bool. Then use this method in the update-method like this:</p>
<pre><code class="cs">void Update () {
    if (this.UserDidTapOnPhone () &amp;&amp; !this.UserTappedOnMenu() || this.UserDidEditorTap()) {
        this.AddForceToGameObject ();
    }
}

</code></pre>
<h3>8. The finished TapController.cs</h3>
<pre><code class="cs">using UnityEngine;
using UnityEngine.EventSystems;
using System.Collections;

public class TapController : MonoBehaviour {

	public Rigidbody rigidBody;
	public Vector2 jumpForce = new Vector2(0, 4f);

	void Update () {
		if (this.UserDidTapOnPhone () &amp;&amp; !this.UserTappedOnMenu() || this.UserDidEditorTap()) {
			this.AddForceToGameObject ();
		}
	}

	private void AddForceToGameObject() {
		this.rigidBody.velocity = Vector2.zero;
		this.rigidBody.AddForce(this.jumpForce, ForceMode.Impulse);
	}

	private bool UserDidTapOnPhone() {
		var didTap = false;
		foreach(Touch touch in Input.touches) {
			if(touch.phase == TouchPhase.Began) {
				didTap = true;
			}
		}
		return didTap;
	}

	private bool UserTappedOnMenu() {
		bool didTapMenu = false;
		if(Input.touchCount &gt; 0) {
			int pointerID = Input.touches[0].fingerId;
			if (EventSystem.current.IsPointerOverGameObject(pointerID))
			{
				didTapMenu = true;
			}
		}
		return didTapMenu;
	}

	private bool UserDidEditorTap() {
		var didEditorTap = false;
		if(Application.isEditor &amp;&amp; Input.GetKeyUp(KeyCode.Space)) {
			didEditorTap = true;
		}
		return didEditorTap;
	}
}
</code></pre>]]></content><author><name></name></author><category term="C#" /><category term="Tutorial" /><category term="Unity3D" /><summary type="html"><![CDATA[In this TapController Unity3d tutorial we’ll create a script that will work so that when the player taps the screen, a force is added to a GameObject. This technique is used in Friendsheep. This code is open sourced, and you can download it from the unity examples repository. This is the finished TapController.cs. As an example have a…]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://honkbarkstudios.com/wp-content/uploads/2016/06/TapController-Unity3d-tutorial.png" /><media:content medium="image" url="https://honkbarkstudios.com/wp-content/uploads/2016/06/TapController-Unity3d-tutorial.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Honkbark Studios has made it to the news</title><link href="https://honkbarkstudios.com/developer-blog/honkbark-studios-made-news/" rel="alternate" type="text/html" title="Honkbark Studios has made it to the news" /><published>2016-05-31T12:56:02+02:00</published><updated>2016-05-31T12:56:02+02:00</updated><id>https://honkbarkstudios.com/developer-blog/honkbark-studios-made-news</id><content type="html" xml:base="https://honkbarkstudios.com/developer-blog/honkbark-studios-made-news/"><![CDATA[<p>Honkbark studios has made it to the news with our new game <a href="/games/friendsheep/">Friendsheep</a>. Last Friday we released it and has since then been appreciated by players.</p>
<p>If you know your <a href="https://www.duolingo.com/">Swedish</a> you&#8217;ll understand the contents in these articles.</p>
<p>We are very pleased to get some press coverage since it has proven to be hard to get. We&#8217;ll probably write a story about it and share some experience. But for now, here are the news:</p>
<p><a href="http://www.foretagsam.nu/article/ung-entreprenor-lanserar-mobilspel/">&#8220;Ung entreprenör lanserar mobilspel&#8221; &#8211; Företagsam.nu<br />
</a>(Translation: Young entrepreneur releases mobile game)</p>
<p><a href="http://www.jmini.se/nyheter/45657/forsta-mobilspelet-fran-jonkopings-nya-spelstudio-har-lanserats">&#8220;Första mobilspelet från Jönköpings nya spelstudios har lanserats&#8221; &#8211; Jmini<br />
</a>(Translation First mobil game from Jönköpings new game studio has been released)</p>
<p>&nbsp;</p>]]></content><author><name></name></author><category term="Game development" /><category term="Random thingy" /><summary type="html"><![CDATA[Honkbark studios has made it to the news with our new game Friendsheep. Last Friday we released it and has since then been appreciated by players. If you know your Swedish you’ll understand the contents in these articles. We are very pleased to get some press coverage since it has proven to be hard to get.…]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://honkbarkstudios.com/wp-content/uploads/2016/05/Honkbark-Studios-has-made-it-to-the-news.png" /><media:content medium="image" url="https://honkbarkstudios.com/wp-content/uploads/2016/05/Honkbark-Studios-has-made-it-to-the-news.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Friendsheep is released!</title><link href="https://honkbarkstudios.com/developer-blog/friendsheep-is-released/" rel="alternate" type="text/html" title="Friendsheep is released!" /><published>2016-05-27T15:50:30+02:00</published><updated>2016-05-27T15:50:30+02:00</updated><id>https://honkbarkstudios.com/developer-blog/friendsheep-is-released</id><content type="html" xml:base="https://honkbarkstudios.com/developer-blog/friendsheep-is-released/"><![CDATA[<p>The day is finally here. Friendsheep is released! You must help the sheep stay alive!<br />
<iframe src="https://www.youtube.com/embed/twV3eEGj6qQ" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe></p>
<p>You can download it for <a href="https://itunes.apple.com/app/friendsheep/id1002907469">iOS</a> and <a href="https://play.google.com/store/apps/details?id=com.honkbarkstudios.friendsheep" class="broken_link">Android devices</a>.</p>
<p>Story:</p>
<p>A deranged professor and farmer wanted to grow his two pigs, Baconesse and Porky, larger because of his unstoppable food cravings. But in his lab, the professor accidentaly spilled the bottle of toxic waste into the pigs&#8217; food supply. The pigs mutated into Supersheeps with the amazing ability to fly. At first everything seemed alright, except for the pigs being mutated into Supersheeps. As time went on the Supersheeps needed constant feeding to stay alive and the professors food was running out. It was in this time of chaos the sheeps bond and friendship grew stronger. When the food was completely gone they decided to fly away to find food elsewhere. Now you must help them survive for as long as you can!</p>
<p>That is where you, as a player, comes in. The two supersheeps are out hunting for superfood in the form of clovers. They can only be gathered up in the air since they are very light weight. The mission is to keep both sheeps in the air at the same time, if you miss a clover the sheep will loose energy and loose their ability to fly. The clover is also color coded so the sheep with the red cape can only eat red clovers, and the sheep with the blue cape can only eat blue clovers. They are allergic to each others clovers.</p>]]></content><author><name></name></author><category term="Game development" /><summary type="html"><![CDATA[The day is finally here. Friendsheep is released! You must help the sheep stay alive! You can download it for iOS and Android devices. Story: A deranged professor and farmer wanted to grow his two pigs, Baconesse and Porky, larger because of his unstoppable food cravings. But in his lab, the professor accidentaly spilled the bottle…]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://honkbarkstudios.com/wp-content/uploads/2016/05/Friendsheep-teaser-image.jpg" /><media:content medium="image" url="https://honkbarkstudios.com/wp-content/uploads/2016/05/Friendsheep-teaser-image.jpg" xmlns:media="http://search.yahoo.com/mrss/" /></entry></feed>