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 / Very intermittent bug.

Author
Message
wyrleywolves2
6
Years of Service
User Offline
Joined: 16th Jan 2018
Location:
Posted: 20th Jan 2018 18:48 Edited at: 21st Jan 2018 08:08
I have created a basic Line-break game, but very rarely my ball gets stuck on the side. I have added the code, Is there something obvious that I am missing?
IronManhood
9
Years of Service
User Offline
Joined: 6th Feb 2015
Location: US
Posted: 21st Jan 2018 06:00
Indented the code to make it more eye friendly.

IronManhood
9
Years of Service
User Offline
Joined: 6th Feb 2015
Location: US
Posted: 21st Jan 2018 06:09 Edited at: 21st Jan 2018 06:09
Could you explain the error in more detail, maybe a screenshot?
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 21st Jan 2018 08:12
Could it be at line 121?



If you don't clear the line with the ball position on the same iteration, then in the next iterations, you'll constantly ignore the collision.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
wyrleywolves2
6
Years of Service
User Offline
Joined: 16th Jan 2018
Location:
Posted: 21st Jan 2018 13:28
Thanks for your replies, The problem was I was only checking an x component.

Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 24th Jan 2018 09:08

Login to post a reply

Server time is: 2024-11-24 03:52:33
Your offset time is: 2024-11-24 03:52:33