Character walking through other character although SOLID function is active

Started by Mini_Doom, Fri 01/12/2017 03:51:05

Previous topic - Next topic

Mini_Doom

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 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:.
Wanna go for some D&D??

Khris

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.

Mini_Doom

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
Wanna go for some D&D??

SMF spam blocked by CleanTalk