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 / Box 2d Mapped Sprite

Author
Message
KaiProton
13
Years of Service
User Offline
Joined: 5th Aug 2010
Location: Manchester, UK
Posted: 15th Nov 2012 13:25
Im trying out the Box 2d Functions,

and I cannot find/Understand how to make the BG sprites interact with the in game sprites, at least the way I want them to do it,

Basically, as the Tutor on the AppGameKit Site shows an angry birds type, with the ball,
Im trying to get the Ball, in this case to roll down a slope,
but when I add the sprite for the bg, it maps as a circle or square,
Ive not tried out the Poly map for it yet.

but I was wondering if it could be mapped to the sprites outline, as its a 255 png image with colour number 255 as transparent.

K.
Funnell7
12
Years of Service
User Offline
Joined: 8th Sep 2011
Location: UK, England
Posted: 15th Nov 2012 13:29
SetSpriteShape(Sprite, 3) will set the shape around its outline. Although it will not outline anything which is concaved...

SetSpriteShape - The shape to use for this sprite, 0=no shape, 1=circle, 2=box, 3=polygon
KaiProton
13
Years of Service
User Offline
Joined: 5th Aug 2010
Location: Manchester, UK
Posted: 15th Nov 2012 13:33
Brilliant,

so its actually automatic Shaping,

Thanks I will try that out now!!


KaiProton
13
Years of Service
User Offline
Joined: 5th Aug 2010
Location: Manchester, UK
Posted: 15th Nov 2012 13:43
Thanks Funnell7,

That was great,

I guess if I wanted a concave, it would be programmed poly, so not too good, at least by me.
Funnell7
12
Years of Service
User Offline
Joined: 8th Sep 2011
Location: UK, England
Posted: 15th Nov 2012 13:53
Yeah, concave is a lot trickier. Although Baxslash has created a very useful tool for this. Check this link out...

http://forum.thegamecreators.com/?m=forum_view&t=194938&b=48
KaiProton
13
Years of Service
User Offline
Joined: 5th Aug 2010
Location: Manchester, UK
Posted: 15th Nov 2012 15:23
Now That Is amazing.

Defiantly gonna download that and try it out.

Login to post a reply

Server time is: 2024-05-05 16:29:15
Your offset time is: 2024-05-05 16:29:15