MY Pong Game
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
MY Pong Game
Here is my Pong game and can someone please tell me why my ball keeps going down.
- Attachments
-
- SuperPong.love
- SuperPong
- (587.64 KiB) Downloaded 57 times
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: MY Pong Game
In the collision code, you have this:
There is no code that makes it negative (except with the screen boundary collision).
So it always goes down.
I would remove those first two lines, and just use:
Code: Select all
elseif Ball.Speedy < 130 then
Ball.Speedy = 130
end
So it always goes down.
I would remove those first two lines, and just use:
Code: Select all
Ball.Speedy = -Ball.Speedy
Help us help you: attach a .love.
Who is online
Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 48 guests