Jibble

Author Topic: object blocking height issue  (Read 632 times)

Matti

object blocking height issue
« on: 17 Oct 2018, 15:55 »
I haven't worked with blocking objects in a long time and now that I do I'm having some issues. I think it isn't very convenient that the blocking height is centered around the baseline, because in most cases you'd want an object to be blocking from the lowest point upwards.

In my case, the character walks right through the chair, but cannot go past below it. I tried changing the chair's baseline but that didn't change the blocking area. I could use a dummy object or alter the walkeable area, but I'm not sure if I'm doing something wrong with the baselines or if there's another way to accomplish this.

Here's the situation with the walkeable area minus the blocking rectangles which are way off:


« Last Edit: 17 Oct 2018, 21:35 by Matti »

Khris

  • partook in silencing a crtitc despite facts
    • Lifetime Achievement Award Winner
    • I can help with play testing
    • I can help with scripting
    • I can help with translating
    • Khris worked on one or more games that was nominated for an AGS Award!
Re: object blocking height issue
« Reply #1 on: 17 Oct 2018, 15:59 »
Yeah, those blocking rectangles seem to assume that objects and characters have no depth. To add insult to injury, Objects don't have a .Z property.
If that chair isn't going to move, just draw the hole by hand.
Fail at Floaty Rog' now!  still having to deal with what games are going through

Matti

Re: object blocking height issue
« Reply #2 on: 17 Oct 2018, 21:41 »
Hm, I thought so. The chair doesn't need to be moved so I'll just cut a hole into the walkeable area. But maybe this is something that should be improved. I remember quite a few situations in other games where the characters would walk around objects rather strangely. Now I know why ;)

EDIT: It's even worse that the vertical center of the rectangle is one pixel below the lowest pixel of the sprite.
« Last Edit: 18 Oct 2018, 12:27 by Matti »

Khris

  • partook in silencing a crtitc despite facts
    • Lifetime Achievement Award Winner
    • I can help with play testing
    • I can help with scripting
    • I can help with translating
    • Khris worked on one or more games that was nominated for an AGS Award!
Re: object blocking height issue
« Reply #3 on: 18 Oct 2018, 13:27 »
Re edit: afaik that's the position of the object; AGS subtracts the sprite height when drawing it, so the lowest pixel of an object is always one pixel above its actual position.
Fail at Floaty Rog' now!  still having to deal with what games are going through

Monsieur OUXX

  • Mittens Half Initiate
    • I can help with proof reading
    • I can help with translating
    • I can help with voice acting
    • Monsieur OUXX worked on one or more games that won an AGS Award!
    •  
    • Monsieur OUXX worked on one or more games that was nominated for an AGS Award!
Re: object blocking height issue
« Reply #4 on: 22 Oct 2018, 14:12 »
Yes. More generally, this might be a direction to follow for improvement : One should be able to configure the "ground point" of objects and characters. The fact that it's tied to the lowest pixel can be really annoying if there's, let's say, a cast shadow below. That means that the .z property should be universal, and, why not, configurable in the GUI.
 

Matti

Re: object blocking height issue
« Reply #5 on: 23 Oct 2018, 10:33 »
Monsieur OUXX, I started a thread in the editor development forum. If you want, bring in your ideas there.