{"author_name":"recursive frog","cat":"LD #22","comments":[],"epoch":1324104720,"likes":2,"metadata":{"p_key":"61955","p_author":"recursive frog","p_authorkey":"504529","p_urlkey":"97721","p_title":"(-o^_^)-o The Hugmonster commeth","p_cat":"LD #22","p_event":"LD22","p_time":"1324104720","p_likes":"2","p_comments":"0","p_status":"UPD5","us_key":"504529","us_name":"recursive frog","us_username":"recursive frog","event_start":"1323993600","event_key":"8","event_name":"LD22"},"text":"<p>&nbsp;<\/p>\n <p>&nbsp;<\/p>\n <p>&nbsp;<\/p>\n <p>&nbsp;<\/p>\n <p>(-o^_^)-o \u00a0The Hugmonster has arrived and it thinks you look like you need some CHEERING UP!<\/p>\n <p><a href=\"http:\/\/www.ludumdare.com\/compo\/2011\/12\/17\/o_-o-the-hugmonster-commeth\/demo000\/\" rel=\"attachment wp-att-89102\"><img class=\"alignnone size-medium wp-image-89102\" src=\"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2011\/12\/demo000-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2011\/12\/demo000-300x169.png 300w, http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2011\/12\/demo000-550x310.png 550w, http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2011\/12\/demo000.png 976w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n <p>&nbsp;<\/p>\n <p>Awww, they always get allllllllll squishy when they meet the Hug Monster!<\/p>\n <p>&nbsp;<\/p>\n <p>So, it&#8217;s not really hard to set up input and motion in Unity. The little guy walks, and has a really short walk cycle that ramps up from 0 frames per second up to his max depending on his current velocity. \u00a0The same is true of the Hug Monster. \u00a0They both derive from an Ambulator class that contains the basics of walking and jumping. \u00a0The human player&#8217;s motion is controlled by the player while the Hug Monster relies on its AI to try to find the player and GIVE HIM A BIG OL&#8217; SQUEEZE.<\/p>\n <p>&nbsp;<\/p>\n <p>The Ambulator has a nice inertia effect, so walking has a smooth acceleration. \u00a0Since the Hug Monster is such a beast, it has a slower acceleration than the player but it has a higher maxVelocity, so once it gets going you can&#8217;t outrun it by speed alone. \u00a0You&#8217;ll have to rely on terrain. \u00a0Of course, the Hug Monster can jump too just like the player!<\/p>\n <p>It&#8217;s simple, but it&#8217;s enough before bed, I think.<\/p>\n <p>&nbsp;<\/p>\n <p>&nbsp;<\/p>\n <p>&nbsp;<\/p>\n <p>&nbsp;<\/p>\n <p>&nbsp;<\/p>","time":"December 17th, 2011 1:52 am","title":"(-o^_^)-o The Hugmonster commeth"}