<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>Scirra Forum : How to move camera with keyboard</title>
  <link>http://www.scirra.com/forum/</link>
  <description>This is an XML content feed of; Scirra Forum : How do I....? : How to move camera with keyboard</description>
  <copyright>Copyright (c) 2006-2011 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 19 Jun 2013 05:03:20 +0000</pubDate>
  <lastBuildDate>Sun, 20 Nov 2011 20:21:38 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 10.01</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.scirra.com/forum/RSS_post_feed.asp?TID=46312</WebWizForums:feedURL>
  <image>
   <title>Scirra Forum</title>
   <url>http://www.scirra.com/forum/forum_images/web_wiz_forums.png</url>
   <link>http://www.scirra.com/forum/</link>
  </image>
  <item>
   <title>How to move camera with keyboard : If you have several instances...</title>
   <link>http://www.scirra.com/forum/how-to-move-camera-with-keyboard_topic46312_post290165.html#290165</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="../users/kyatric">Kyatric</a><br /><strong>Subject:</strong> 46312<br /><strong>Posted:</strong> 20 Nov 2011 at 8:21pm<br /><br />If you have several instances of Object, the pointer will pick the very first one.<br />Unless you pick the target object before to make sure it is its coordinates that are given to Pointer.<br /><br />You should <a href="http://www.scirra.com/tutorials/42/upload-your-game-to-dropbox" target="_blank" title="Game maker">post a capx</a> (save to single file) to illustrate what you currently get instead of the intended as you described it.]]>
   </description>
   <pubDate>Sun, 20 Nov 2011 20:21:38 +0000</pubDate>
   <guid isPermaLink="true">http://www.scirra.com/forum/how-to-move-camera-with-keyboard_topic46312.html</guid>
  </item> 
  <item>
   <title>How to move camera with keyboard : Thank you Kyatic. I have one last...</title>
   <link>http://www.scirra.com/forum/how-to-move-camera-with-keyboard_topic46312_post290163.html#290163</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="../users/tribalismdev">tribalismdev</a><br /><strong>Subject:</strong> 46312<br /><strong>Posted:</strong> 20 Nov 2011 at 7:38pm<br /><br />Thank you Kyatic. I have one last question then I should be out of everyone's hair for a while. I'm trying to set up a pointer on a HUD layer that will always point to an object's location, kind of like a map marker, but I can't seem to get it to point at the created object. The way I'm trying to set it up is like this:<br /><br />EveryTick<br />If ObjectIsPlaced = 1 <br /><br />then Set pointer angle to Object.X , Object.Y<br /><br />When ran it just points in a random direction and stays there. =\]]>
   </description>
   <pubDate>Sun, 20 Nov 2011 19:38:58 +0000</pubDate>
   <guid isPermaLink="true">http://www.scirra.com/forum/how-to-move-camera-with-keyboard_topic46312.html</guid>
  </item> 
  <item>
   <title>How to move camera with keyboard : Mouse click movement : LINKThat...</title>
   <link>http://www.scirra.com/forum/how-to-move-camera-with-keyboard_topic46312_post290161.html#290161</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="../users/kyatric">Kyatric</a><br /><strong>Subject:</strong> 46312<br /><strong>Posted:</strong> 20 Nov 2011 at 7:33pm<br /><br />Mouse click movement : <a href="http://www.scirra.com/forum/mouse-click-movement_topic44589_page1.html" target="_blank" title="Game maker">LINK</a><br /><br />That should inspire you.<br />There are other examples in the FAQ.]]>
   </description>
   <pubDate>Sun, 20 Nov 2011 19:33:33 +0000</pubDate>
   <guid isPermaLink="true">http://www.scirra.com/forum/how-to-move-camera-with-keyboard_topic46312.html</guid>
  </item> 
  <item>
   <title>How to move camera with keyboard : Also: how does one achieve getting...</title>
   <link>http://www.scirra.com/forum/how-to-move-camera-with-keyboard_topic46312_post290156.html#290156</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="../users/tribalismdev">tribalismdev</a><br /><strong>Subject:</strong> 46312<br /><strong>Posted:</strong> 20 Nov 2011 at 6:40pm<br /><br />Also: how does one achieve getting the unit to move to a point clicked? I was trying to work on that last night as I wanted to create simple AI to have a certain unit autonomously seek out another, perform an action on it and then return to what it was doing.]]>
   </description>
   <pubDate>Sun, 20 Nov 2011 18:40:33 +0000</pubDate>
   <guid isPermaLink="true">http://www.scirra.com/forum/how-to-move-camera-with-keyboard_topic46312.html</guid>
  </item> 
  <item>
   <title>How to move camera with keyboard : Oh well I&amp;#039;ve worked in C++,...</title>
   <link>http://www.scirra.com/forum/how-to-move-camera-with-keyboard_topic46312_post290154.html#290154</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="../users/tribalismdev">tribalismdev</a><br /><strong>Subject:</strong> 46312<br /><strong>Posted:</strong> 20 Nov 2011 at 6:37pm<br /><br />Oh well I've worked in C++, Java, Ruby, and Python. So arrays are pretty simple. The only thing that makes this task daunting is the event sheet UI. While I love that everything is simplified into a click and pick form, sometimes just hard-coding would be much simpler, such as for tasks like this, if C2 had that kind of support. But I'm not complaining at all. I'll look into it, and thanks for your advice guys.<br />]]>
   </description>
   <pubDate>Sun, 20 Nov 2011 18:37:49 +0000</pubDate>
   <guid isPermaLink="true">http://www.scirra.com/forum/how-to-move-camera-with-keyboard_topic46312.html</guid>
  </item> 
  <item>
   <title>How to move camera with keyboard : selecting something would be possible...</title>
   <link>http://www.scirra.com/forum/how-to-move-camera-with-keyboard_topic46312_post290133.html#290133</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="../users/yann">Yann</a><br /><strong>Subject:</strong> 46312<br /><strong>Posted:</strong> 20 Nov 2011 at 4:50pm<br /><br />selecting something would be possible by having a "selected" boolean private variable you set to true if the unit is selected.<br />you just have to foreach the units and check for these variable set to true and apply your actions.<br /><br />To group, you could have a 2 dimensional array sized this way :<br />DIM X = maximum number of groups<br />DIM Y = maximum number of units per groups<br /><br />and then you select the units you want to group (that is to say, their "selected" variable get set to true)<br />and when you use your shortcut to groupe them, you foreach them and store their UID in the arrayat(IDofTheGroup,loopindex)<br /><br />If you want to recall your selection, you just have to do a <br />for 0 to DIM Y <br />&nbsp;&nbsp;&nbsp;&nbsp;if unit.UID == arrayat(IDofTheGroup,loopindex) -&gt; unit set selected to true<br /><br />I hope you have some knowledge of c2 else I might be a bit hard to understand... If you don't understand, you don't have enough knowledge <u>yet</u> to make a RTS I guess (:]]>
   </description>
   <pubDate>Sun, 20 Nov 2011 16:50:19 +0000</pubDate>
   <guid isPermaLink="true">http://www.scirra.com/forum/how-to-move-camera-with-keyboard_topic46312.html</guid>
  </item> 
  <item>
   <title>How to move camera with keyboard : relatively difficult, but possible....</title>
   <link>http://www.scirra.com/forum/how-to-move-camera-with-keyboard_topic46312_post290091.html#290091</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="../users/sqiddster">sqiddster</a><br /><strong>Subject:</strong> 46312<br /><strong>Posted:</strong> 20 Nov 2011 at 8:38am<br /><br />relatively difficult, but possible.]]>
   </description>
   <pubDate>Sun, 20 Nov 2011 08:38:14 +0000</pubDate>
   <guid isPermaLink="true">http://www.scirra.com/forum/how-to-move-camera-with-keyboard_topic46312.html</guid>
  </item> 
  <item>
   <title>How to move camera with keyboard : okay. Well I&amp;#039;ve ironed out...</title>
   <link>http://www.scirra.com/forum/how-to-move-camera-with-keyboard_topic46312_post290083.html#290083</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="../users/tribalismdev">tribalismdev</a><br /><strong>Subject:</strong> 46312<br /><strong>Posted:</strong> 20 Nov 2011 at 6:45am<br /><br />okay. Well I've ironed out those issues. Is setting up an RTS-like control scheme possible with Construct 2? Like multiple units, click to move, group selection, etc?]]>
   </description>
   <pubDate>Sun, 20 Nov 2011 06:45:14 +0000</pubDate>
   <guid isPermaLink="true">http://www.scirra.com/forum/how-to-move-camera-with-keyboard_topic46312.html</guid>
  </item> 
  <item>
   <title>How to move camera with keyboard : You are using 8 directional movement,...</title>
   <link>http://www.scirra.com/forum/how-to-move-camera-with-keyboard_topic46312_post290080.html#290080</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="../users/brockatkinson">brockatkinson</a><br /><strong>Subject:</strong> 46312<br /><strong>Posted:</strong> 20 Nov 2011 at 6:10am<br /><br />You are using 8 directional movement, yes? That's probably why.<br /><br />I would recommend that you have you blank event only have ScrollTo on it, and do the movement as events (when keyboard.buttonPressed.Left -&gt; cameraSprite.Move.X = cameraSprite.X - 2 &#091;or whatever it might be&#093;).]]>
   </description>
   <pubDate>Sun, 20 Nov 2011 06:10:00 +0000</pubDate>
   <guid isPermaLink="true">http://www.scirra.com/forum/how-to-move-camera-with-keyboard_topic46312.html</guid>
  </item> 
  <item>
   <title>How to move camera with keyboard : Okay. I&amp;#039;ve created an invisible...</title>
   <link>http://www.scirra.com/forum/how-to-move-camera-with-keyboard_topic46312_post290078.html#290078</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="../users/tribalismdev">tribalismdev</a><br /><strong>Subject:</strong> 46312<br /><strong>Posted:</strong> 20 Nov 2011 at 5:07am<br /><br />Okay. I've created an invisible sprite to use for camera movement. However there seems to be some considerable lag when changing directions this way. Sometimes I have to press the key multiple times before it will finally go in that directions. Also there is some problems with solid objects, since the objects are solid the camera can get snagged on them, even with the camera not set to solid.]]>
   </description>
   <pubDate>Sun, 20 Nov 2011 05:07:30 +0000</pubDate>
   <guid isPermaLink="true">http://www.scirra.com/forum/how-to-move-camera-with-keyboard_topic46312.html</guid>
  </item> 
 </channel>
</rss>