Making it so ball heading reverses when it hits another sprite

41 views
Skip to first unread message

Ian Klepacki

unread,
Dec 22, 2014, 8:26:20 AM12/22/14
to mitappinv...@googlegroups.com
Hello
I am somewhat new to App Inventor, and i am having some issues with an app I'm working on. My app is a copy of the game pong. im asking for a prompt response as this is a project that is due in early january.

OVERVIEW
My app consits of a ball that bounces off of a line and hits another wall to score. i am having an issue with the heading of the ball in that the ball is hitting the line but reversing direction sometimes.

ISSUES

getting the ball heading to not reverse when hitting the line

i have attached my latest version of the project

Thank you,
Ian Klepacki
Ping.aia

Abraham Getzler

unread,
Dec 22, 2014, 3:51:46 PM12/22/14
to mitappinv...@googlegroups.com
Here's a link to a doc on my experiments with
balls bouncing off lines, with sample code ...

It has references to sites with angle calculations.

ABG

Reply all
Reply to author
Forward
0 new messages