ON_CEILING issue
ON_CEILING issue
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.
- ChillyWilly
- Posts: 46
- Joined: Tue Jul 03, 2012 9:25 pm
Re: ON_CEILING issue
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.
Not really dead, just pining for the fjords.
- ChillyWilly
- Posts: 46
- Joined: Tue Jul 03, 2012 9:25 pm
Re: ON_CEILING issue
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.
So if you were using PNG, you might try it again - they shouldn't be higher and off to the side any more.
Not really dead, just pining for the fjords.
Re: ON_CEILING issue
Yes CeeJay - please test this out again and let us know if there is still a problem with ON_CEILING. ^_^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.
\(סּںסּَ` )/ۜ
Re: ON_CEILING issue
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.
- ChillyWilly
- Posts: 46
- Joined: Tue Jul 03, 2012 9:25 pm
Re: ON_CEILING issue
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.
Not really dead, just pining for the fjords.
Re: ON_CEILING issue
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.
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.
\(סּںסּَ` )/ۜ