Page 1 of 1

ON_CEILING issue

Posted: Sat Jan 07, 2017 10:30 am
by CeeJay
The way EDGE handles the ON_CEILING special seems a little wonky. If you give the object any other height than 16 the sprite won't stick to the ceiling properly, usually it'll just float in mid-air. No idea if this is really a bug or if it's just the way EDGE handles it but my attempts at making ceiling-based enemies have been less than succeful, forcing me to give it a height of 16 which results in making it near-impossible to hit with anything other than splash damage.

Re: ON_CEILING issue

Posted: Thu Jan 12, 2017 9:38 pm
by ChillyWilly
ON_CEILING does nothing more than set the spawn Z to the ceiling height minus the height of the sprite. Sounds like you're not adjusting the footprint position for the sprite properly to allow for this.

Re: ON_CEILING issue

Posted: Fri Jan 20, 2017 7:01 am
by ChillyWilly
If the sprites were PNG with a grAb struct, then the issue was that edge wasn't adjusting the grAb offset for where the renderer sets the sprite origin. I corrected that last night, which made the barrels in Duke It Out final get placed correctly. They were floating in the air higher and off to the side compared to where they should have been - they were also PNG with a grAb offset.

So if you were using PNG, you might try it again - they shouldn't be higher and off to the side any more.

Re: ON_CEILING issue

Posted: Fri Jan 20, 2017 5:08 pm
by Corbachu
ChillyWilly wrote:If the sprites were PNG with a grAb struct, then the issue was that edge wasn't adjusting the grAb offset for where the renderer sets the sprite origin. I corrected that last night, which made the barrels in Duke It Out final get placed correctly. They were floating in the air higher and off to the side compared to where they should have been - they were also PNG with a grAb offset.

So if you were using PNG, you might try it again - they shouldn't be higher and off to the side any more.
Yes CeeJay - please test this out again and let us know if there is still a problem with ON_CEILING. ^_^

Re: ON_CEILING issue

Posted: Thu Jan 26, 2017 12:50 pm
by CeeJay
The barrels "floating in mid-air" issue had nothing to do with any ON_CEILING command, I just hadn't removed the internal offsets (grAb offset?) of the PNG image which has since been fixed.

Re: ON_CEILING issue

Posted: Sun Jan 29, 2017 3:30 pm
by ChillyWilly
Well, grabs should be working now. The thought was that when you were doing stuff on the ceiling, the bad offsets from the grab were possibly the issue, which should be fixed now.

Re: ON_CEILING issue

Posted: Fri Feb 10, 2017 5:38 pm
by Corbachu
I think this has to do with the way 3DGE clips sprites, and the current way is the "easy way out", which will
destroy objects *always*. This is something I plan on re-implementing in the near future. Andrew Apted had
disabled this part of the code with the good intention of fixing it later, but that never happened. Hopefully,
this will solve a few problems related to this.