Hi all
Well im trying to make my first game ever a little pong game.
So far i have mde the code to load the media(bats, ball).
Now i have placed the bats and the ball(Download the screenshot to see a pic of how it looks).
Here is the code of my Pong game:
sync on
sync rate 30
` load the media
load image "media/bats/Playerbat.bmp", 1
load image "media/bats/Enemybat.bmp", 2
load image "media/background/background.bmp", 3
load image "media/ball.bmp",4
load animation "media/intro/movie.avi",1
` place the bats on the screen + the ball
sprite 1,600,135,1
sprite 2,0,140,2
sprite 4,300,190,4
` make the control input
do
sync
sync
loop
wait key
end
Now i have tried figure out how to make the control input for the bat and i just dont know how to make it so does anyone here know how to make the control input of a sprite so when i hit the Up arrow the bat will go up and when i hit the down arrow the sprite will go down?
If anyone will help me please make a little snippet with a that control code.
-Waggames