AGS Awards nominations close at 13:59 GMT on Saturday 10 February 2018. You haven't yet nominated, so you've got 17 days and 4 hours left to play the games and decide which to nominate!

Author Topic: Character walking through other character although SOLID function is active  (Read 135 times)

Mini_Doom

  • I am completely interested tell me more!!
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

    • Lifetime Achievement Award Winner
    •  
    • I can help with play testing
    •  
    • I can help with scripting
    •  
    • I can help with translating
    •  
    • Khris worked on a game that was nominated for an AGS Award!
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

  • I am completely interested tell me more!!
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??