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 / Physics Collision Hitbox Issue

Author
Message
THE_NOTORIOUS_PIGGY
8
Years of Service
User Offline
Joined: 17th Jun 2016
Location:
Posted: 17th Jun 2016 01:47
http://prntscr.com/bhc9js
The catapult in the middle has some problem, as the ball is meant to fall in but it seems to be concave, so it cant. Anyway to working this? The code is seen on the left.

I tried adding SetSpriteShapePolygon but it just broke the whole hitbox.

Also regarding physics, i know what static and dynamic is, but what is kinematic? And what is used for?

Sorry for bad grammar i dont speak London.
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 17th Jun 2016 07:51
You will need to set TWO shapes for the catapult. You cannot have concave physics shapes so will need to add two shapes to your sprite. You could use addspriteshapebox for example.
V2 T1 (Mostly)
Phone Tap!
Uzmadesign

Login to post a reply

Server time is: 2024-09-29 15:25:55
Your offset time is: 2024-09-29 15:25:55