Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [BUG] SetSpriteFlip vs ShapeCircle

Author
Message
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 6th Feb 2019 01:40 Edited at: 6th Feb 2019 09:51
Flipping a Sprite causes the collision Circle to flip thus:




Original discussion including errors in AppGameKit Source.

blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 6th Feb 2019 02:29 Edited at: 6th Feb 2019 02:33
That seems ok to me.
If you think about a collision shape for mario including his nose.
I would want the shape to flip when i flipped the sprite because otherwise his nose would be sticking out the back of his head (or at least the hit shape for his nose)

*EDIT*. Sorry. It flips vertically as well. The image you posted doesn'tI didn't get that till i read the other thread. The image doesn't seem to suggest that
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 6th Feb 2019 03:34
The image is based on the code

blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 6th Feb 2019 04:29
I tried to flip it vertically to see if it would compensate but then it didn't even register as being flipped
flippin heck!

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-05 18:46:27
Your offset time is: 2024-11-05 18:46:27