
-----------------------------------
Metaxu
Sat Dec 22, 2012 12:37 pm

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


-----------------------------------
Raknarg
Sat Dec 22, 2012 9:37 pm

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?
