Clipping entites in a scrollable window


(Crofty) #1

I’m having trouble figuring out how to clip entities in a scrollable window.

I have multiple entities in front of a box graphic. I want the part of the entities that collide within the window to be visible and the rest to not be. So half of an entity might not be visible (depending on placement by the scroll bar).

Is there an easy way to do this?

Thanks


(Martí Angelats i Ribera) #2

If i understood it right, no there isn’t a simple way to do so (but it should be possible).

Just in case, it would be really cool a small fast-made draw of what you want (just to avoid confusion). Obviously it’s just conceptual so it doesn’t have to be pretty.


(Bora Kasap) #3

You can use a dynamic box height that changes a little* if there is a collision at bottom border.

*if smaller part of the entity is inside the box, then decrease box height until you get your desired margin size else if bigger part of the entity is inside the box, then increase box height until you get your desired margin size