{"author_name":"Niavlys","cat":"LD #27","comments":[{"author_name":"BackwardSpy","time":"August 24, 2013 3:10 pm","epoch":1377375000,"text":"Anything I can help with? I&#8217;ve been through years of struggling with collisions until I finally got a decent feel for how to do them correctly, so maybe I can help out. \ud83d\ude00","spam":"N"},{"author_name":"Niavlys","time":"August 24, 2013 3:49 pm","epoch":1377377340,"text":"Well, there is clearly something broken in my collision detection, but I&#8217;ve noticed that it gets a lot better (not 100% perfect, but 500% better) when I call the collision-dealing function twice. It seems to me there are a lot of separate problems that it will be hard to deal with.","spam":"N"},{"author_name":"Niavlys","time":"August 25, 2013 12:52 pm","epoch":1377453120,"text":"&#8220;In general you want to resolve the collision that is shallowest. So, get the penetration depth in the X and Y directions, find out which one is smaller and move the character in that direction.&#8221;","spam":"N"}],"epoch":1377374280,"likes":1,"metadata":{"p_key":"39880","p_author":"Niavlys","p_authorkey":"8666","p_urlkey":"75499","p_title":"Struggling with collisions problems","p_cat":"LD #27","p_event":"LD27","p_time":"1377374280","p_likes":"1","p_comments":"3","p_status":"UPD5","us_key":"8666","us_name":"Niavlys","us_username":"niavlys","event_start":"1377216000","event_key":"18","event_name":"LD27"},"text":"<p>Almost 24h gone and I&#8217;m still struggling with tile-based collision problems. In the meantime, I&#8217;ve tried to do some assets:<\/p>\n <p><a href=\"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2013\/08\/ld27_2.png\"><img class=\"alignnone size-medium wp-image-279311\" alt=\"ld27_2\" src=\"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2013\/08\/ld27_2-300x168.png\" width=\"300\" height=\"168\" srcset=\"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2013\/08\/ld27_2-300x168.png 300w, http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2013\/08\/ld27_2-550x309.png 550w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n <p>The background feels nice (it will have to be altered somehow during\u2026 the 10-second interval), even though it was the easiest to create. The robot and tiles could be greatly improved.<\/p>\n <p>But for now, I&#8217;ll be trying to fix once and for all this collision system.<\/p>","time":"August 24th, 2013 2:58 pm","title":"Struggling with collisions problems"}