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 / AGK physics 2d bat and ball.

Author
Message
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 28th Oct 2015 19:39
trying to get a bat/ball/bricks type game going using 2d physics, I have the ball moving but I found there is no radius type raycasting available when dealing with a using like in the instance a circular shape for the ball, how would I correctly detect all hit from every direction with the ball.. I know the collision code but could only do one direction at a time!
Hail to the king, baby!
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 28th Oct 2015 20:18
here below contacts , u can get all contact points.
http://www.appgamekit.com/documentation/Reference/2DPhysics.htm

the ball itself can have only one moving direction, a result of all forces.

AGK (Steam) V2 Beta .. : Windows 10 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 28th Oct 2015 20:31 Edited at: 28th Oct 2015 22:05
thanks for that code Markus, with it being so lengthy!
I will test it out once I merge it within my level loading code!
*** edit *** one question though.. wth does schlaeger mean?!
Hail to the king, baby!
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 28th Oct 2015 22:14 Edited at: 28th Oct 2015 22:14
schläger = bat

ok, myself i split this kind of game in some files for a better overview,
ball,bat,brick,editor,game,level,input and include it in main.
AGK (Steam) V2 Beta .. : Windows 10 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 29th Oct 2015 18:22 Edited at: 29th Oct 2015 18:23
Thanks again, I only needed the ballcollision() function as everything else had been set in my editor.
here is the result.. Needs more work obviously but it is only 4 days old!
Hail to the king, baby!
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 29th Oct 2015 20:04
ah, ok, looks special
AGK (Steam) V2 Beta .. : Windows 10 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 29th Oct 2015 23:27 Edited at: 29th Oct 2015 23:28
Quote: "ah, ok, looks special "


That may have lost something in translation! Haha...

@shadey You need to get yourself some screen recording software. The blurry close-ups make my eyes go funny. Love the game concept - like super monkey ball or Marble Madness.

You can embed youtube clips here using [ youtube ] tags around the vid id part of the youtube link. i.e. your vid link is https://www.youtube.com/watch?v=BHIArensfLA&feature=youtu.be so to embed you'd do:


Which looks like this:
V2 T1 (Mostly)
Phone Tap!
Uzmadesign
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 30th Oct 2015 14:48 Edited at: 30th Oct 2015 14:59
Damn, that was the wrong video, I hate doing stuff on the tablet:


lets have a go at this embedding...

Hail to the king, baby!
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 30th Oct 2015 14:56
Quote: " that was the wrong video"

it had confused me because you spoke about a breakout game before.
AGK (Steam) V2 Beta .. : Windows 10 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 30th Oct 2015 15:00 Edited at: 30th Oct 2015 15:01
jesus!! ok that is the one! and just to add..I have a real old notebook and it will not handle any recording software without real bad results..hence I try an juggle around with that and the tablet!
Hail to the king, baby!

Login to post a reply

Server time is: 2024-11-25 15:39:53
Your offset time is: 2024-11-25 15:39:53