Pong paddle help
Author |
Message |
Metaxu
|
Posted: Sat Dec 22, 2012 12:37 pm Post subject: Pong paddle help |
|
|
What is it you are trying to achieve?
I am trying to get my pong paddles to no be able to leave the screen
What is the problem you are having?
They always leave the screen if you hold the arrows keys for too long.
Describe what you have tried to solve this problem
i have tried: if y = maxy then
y := maxy
end if
nothing seems to work
Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
Please specify what version of Turing you are using
<Answer Here> |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Raknarg
![](http://compsci.ca/v3/uploads/user_avatars/3745510004d8be6689b92f.jpg)
|
Posted: Sat Dec 22, 2012 9:37 pm Post subject: RE:Pong paddle help |
|
|
With what you've tried, you're going to run into a problem. What's going to happen to the y variable if it's greater than maxy? |
|
|
|
|
![](images/spacer.gif) |
|
|