{"author_name":"Uhfgood","cat":"LD #22","comments":[],"epoch":1324109760,"likes":0,"metadata":{"p_key":"61900","p_author":"Uhfgood","p_authorkey":"53","p_urlkey":"97666","p_title":"My LD22 entry \u2014 Everybody Wants You","p_cat":"LD #22","p_event":"LD22","p_time":"1324109760","p_likes":"0","p_comments":"0","p_status":"UPD5","us_key":"53","us_name":"Uhfgood","us_username":"uhfgood","event_start":"1323993600","event_key":"8","event_name":"LD22"},"text":"<p>I probably won&#8217;t get this entered in to be judged,\u00a0 but we&#8217;ll see.\u00a0 It took me 3 hours to get that little pink block to move around, that&#8217;s because I was building sort of a scripting language, you might say (yes in AS3)<\/p>\n <p><a title=\"My LD entry\" href=\"http:\/\/www.gamesafoot.com\/wp-content\/uploads\/2011\/12\/EverybodyWantsYou1.swf\">http:\/\/www.gamesafoot.com\/wp-content\/uploads\/2011\/12\/EverybodyWantsYou1.swf<br \/>\n <\/a><\/p>\n <p>Anyways I think the &#8220;script&#8221; code is kind of neat &#8212;<br \/>\n <code> npc01 = new CNonPlayerEntity(11 * 8, 8 * 8);<br \/>\n npc01.patrolScript.push(new CPatrolCommand(\"east\", 3, 6));<br \/>\n npc01.patrolScript.push(new CPatrolCommand(\"wait\", 1));<br \/>\n npc01.patrolScript.push(new CPatrolCommand(\"south\", 3, 5));<br \/>\n npc01.patrolScript.push(new CPatrolCommand(\"wait\", 1));<br \/>\n npc01.patrolScript.push(new CPatrolCommand(\"west\", 3, 6));<br \/>\n npc01.patrolScript.push(new CPatrolCommand(\"wait\", 1));<br \/>\n npc01.patrolScript.push(new CPatrolCommand(\"north\", 3, 5));<br \/>\n npc01.patrolScript.push(new CPatrolCommand(\"wait\", 1));<br \/>\n npc01.QueueNextPatrolState();<br \/>\n add(npc01);<br \/>\n <\/code><\/p>\n <p>It may not be brilliant to you, but to me it&#8217;s pretty neat. Basically the only commands or directions it recognizes right now are north, south, east, and west, as well as wait. second command after wait is the wait time in seconds, otherwise it&#8217;s a measure of speed, the third command is distance in tiles. You want it to move back to the original position, you need to use the same distance as you did when you got there. this makes one complete circle. before starting all over again.<\/p>","time":"December 17th, 2011 3:16 am","title":"My LD22 entry \u2014 Everybody Wants You"}