Adventure Game Studio | Forums

AGS Support => Beginners' Technical Questions => Topic started by: Mini_Doom on Fri 01/12/2017 03:51:05

Title: Character walking through other character although SOLID function is active
Post by: Mini_Doom on Fri 01/12/2017 03:51:05
I have myself a little pickle here>:(. My main character is walking through one of my other characters despite the solid function set to True in each of their property windows... I have found a thread with the same topic and the answer was to use the Pixel Perfect Collision module (http://americangirlscouts.org/agsresources/modules.html) but I think that is not compatible with the new versions of AGS Studio. My game is also has a top-down view like pokemon which I think may be the source of the problem. Thank you in advance if you help me out with this:grin:.
Title: Re: Character walking through other character although SOLID function is active
Post by: Khris on Fri 01/12/2017 11:22:26
You can see the rectangle that is cut out of the walkable areas by the char being solid if you press Ctrl+A during the game.
I suspect the issue is that in a top down game, the character's graphic appears way north of their actual position, and therefore their solid part.

One way to fix this is to
a) increase the character's BlockingHeight
b) move the character down in relation to their coordinates by setting their .z to an appropriate negative value

An additional benefit is that you can now draw your walkable areas on the actual ground, and actually stop a few pixels short of the walls on all sides, instead of having to shift them way down.
Title: Re: Character walking through other character although SOLID function is active
Post by: Mini_Doom on Sun 03/12/2017 01:31:04
Quote from: Khris on Fri 01/12/2017 11:22:26
One way to fix this is to
a) increase the character's BlockingHeight
b) move the character down in relation to their coordinates by setting their .z to an appropriate negative value

Thank you for your answer to my question I managed to solve it by Increasing the characters blocking height/width. Can't thank you enough;-D