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 / SetSpriteImage always updates the shape

Author
Message
monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 13th Apr 2014 22:01 Edited at: 13th Apr 2014 22:03
Hi all,

I'm initially creating a sprite with a capsule shaped image and assigning a polygon collision shape, so I can automatically create a capsule collider. Then I change the image to the actual animation sheet. I set the bUpdateShape flag to false, this "should" force it to keep the original shape (or so the documentation states). However as soon as I change the image the collision shape gets updated.

Any ideas??



All programmers are playwrights and all computers are lousy actors.
monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 14th Apr 2014 11:53
Update: OK, I decided to do this manually and add the vertices to a polygon shape. This is so easy and is a very powerful feature in AppGameKit, much kudos to TGC

I would still like to know if this is a bug or if I'm using it incorrectly though, for future reference.

All programmers are playwrights and all computers are lousy actors.
BatVink
Moderator
20
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 14th Apr 2014 15:02
I haven't tested it but I have the same understanding as you, that this flag should prevent any recalculation.

Login to post a reply

Server time is: 2024-03-29 05:46:14
Your offset time is: 2024-03-29 05:46:14