Computer Science Canada Block breaker - Ball HELP!!! |
Author: | ineedinfo [ Wed Jun 03, 2009 1:26 pm ] |
Post subject: | Block breaker - Ball HELP!!! |
I am trying to make a block/brick breaker game but need a little help. I need help making a ball that bounces and is able to move without input. I dont know what to do at all!! I asked some people i know but they know as much as me. Please help I am using Turing 4.1. Thanks so much for your help in advance. PLEASE HELP!!! I will always be in debt and be thankful to you!!!!! |
Author: | BigBear [ Wed Jun 03, 2009 1:49 pm ] |
Post subject: | RE:Block breaker - Ball HELP!!! |
To make the ball move by itself just draw it in a loop using variables for the coords and increase the variables To keep the ball in the screen check to see if it is >= edge and times it by -1 or make it move by a negative number |
Author: | DemonWasp [ Wed Jun 03, 2009 3:32 pm ] |
Post subject: | RE:Block breaker - Ball HELP!!! |
You probably need Input.KeyDown (this provides "non-blocking" input, which means that your program asks what keys are down, stores that information, and continues even if no keys are held down at that point) and the Turing Walkthrough on collision detection. |
Author: | ineedinfo [ Sat Jun 06, 2009 11:23 am ] |
Post subject: | RE:Block breaker - Ball HELP!!! |
okay, thanks for the help guys! got someone else to help me with it, so thanks anyways! |