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.

Newcomers AppGameKit Corner / Will SetSpritePhysicsOff also turn off calculation of new collision shape?

Author
Message
Cybermind
Valued Member
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 29th Dec 2015 11:18
If I turn of physics for a sprite, will this also turn of calculation of new collision shape for sprite when I resize it? I need 1 sprite to change size multiple times during a frame and then be drawn each time, so I don't want to calculate collision shape each time as I don't need collision for this sprite.
The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE I SUCK...
Cybermind
Valued Member
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 4th Jan 2016 10:28
For those interested, adding the last parameter to this command turns off updating collision shape: SetSpriteImage ( iSpriteIndex, iImageIndex, bUpdateShape )
The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE I SUCK...

Login to post a reply

Server time is: 2024-04-19 17:41:29
Your offset time is: 2024-04-19 17:41:29