Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: SOLVED - Collision detection - TURTLE
Post: RE: SOLVED - Collision detection - TURTLE

Final Code for the Breakout game: ################################################################################ # # # ...
OuateDePhoque General Coding Help 9 11,394 Nov-18-2020, 06:29 PM
    Thread: SOLVED - Collision detection - TURTLE
Post: RE: SOLVED - Collision detection - TURTLE

Hi Paul, Yeah, at the end the "bounce off" solution was kind of obvious for the sides ^^ Solution: ball.setheading(180 + -ball.heading()) Now i'm done! **biggrin** on to the next project! **sm...
OuateDePhoque General Coding Help 9 11,394 Nov-18-2020, 06:27 PM
    Thread: SOLVED - Collision detection - TURTLE
Post: RE: HELP - Collision detection - TURTLE

Hi Paul, Thx for the help! Found the problem, it was indeed in line 5-6-7! I forgot to une the abs()! ^^ (stupid mistake) BTW: an other mistake: # COLLISION WITH BOX CHECK def collision_bloc...
OuateDePhoque General Coding Help 9 11,394 Nov-18-2020, 11:48 AM
    Thread: SOLVED - Collision detection - TURTLE
Post: RE: HELP - Collision detection - TURTLE

(Nov-17-2020, 07:35 AM)DPaul Wrote: Nice piece of work so far! I had a quick look, and i suspect the problem starts with your counter_collision +=1. because of your break statements, it does not get...
OuateDePhoque General Coding Help 9 11,394 Nov-17-2020, 01:39 PM
    Thread: SOLVED - Collision detection - TURTLE
Post: RE: HELP - Collision detection - TURTLE

Hi Paul, Yeah, it's only a part of the code. Here's the complete one. Niko import turtle import random import time ######################################################### # VARIABLES...
OuateDePhoque General Coding Help 9 11,394 Nov-17-2020, 07:02 AM
    Thread: SOLVED - Collision detection - TURTLE
Post: SOLVED - Collision detection - TURTLE

Hello y'all! I'm new here, so I hope my question will be clear enough! I'm trying to create a Breakout game using Python n Turtle. I created my lists of blocks and my main block to .clone() but w...
OuateDePhoque General Coding Help 9 11,394 Nov-16-2020, 01:35 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020