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 / Reduce SpriteShape

Author
Message
Max Tillberg
18
Years of Service
User Offline
Joined: 16th Jul 2005
Location:
Posted: 4th Jul 2013 18:25
I have set a sprite to SetSpriteShape ( sprite, 1 ) but I would like to make the circle for collision detection smaller, is this possible?

Sincerely,
Max Tillberg
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 4th Jul 2013 18:53
SetSpriteShapeCircle( iSpriteIndex, x, y, radius )
SetSpriteShapeBox( iSpriteIndex, x, y, x2, y2, angle )
Van B
Moderator
21
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 4th Jul 2013 18:55
Ohhh, I didn't know you could rotate a collision box - that could be pretty handy, especially for a character and platform collision - where a box or circle might not cut it.

I got a fever, and the only prescription, is more memes.
Max Tillberg
18
Years of Service
User Offline
Joined: 16th Jul 2005
Location:
Posted: 4th Jul 2013 19:11
Thanks a lot. It would be nice if related commands would be linked to each other in help pages. Right now it is quite hard to find the things I am searching for (but I guess that I learn).

Sincerely,
Max Tillberg
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 4th Jul 2013 22:32

Login to post a reply

Server time is: 2024-05-03 18:14:43
Your offset time is: 2024-05-03 18:14:43