Bouncing off a line

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
nicholas.aycockGA5787
Posts: 11
Joined: Mon Jan 16, 2012 10:40 am

Bouncing off a line

Post by nicholas.aycockGA5787 » Tue Jan 17, 2012 6:30 am

I am able to draw a line, but i would like a image to collide and bounce off of the line i created.
What script, or tutorial, would i need to fix this? Thanks in advance for helping.

kdjanz
Posts: 300
Joined: Fri Dec 09, 2011 12:12 pm

Re: Bouncing off a line

Post by kdjanz » Tue Jan 17, 2012 7:23 am

If you look at the Academy video that dealt with intersections (Week 3 I believe, just before Christmas) you will see how the rocket detects collisions with the asteroids or the ground. That will give you some background

If you look in the December Academy forum you will see some scripts that deal with the Intersect issue that people have posted.

Best of all for you, Sturgis has posted a breakout game that shows you how to bounce a ball off bricks: http://forums.runrev.com/viewtopic.php? ... out#p49171

You can learn from all of those.

Good Luck

Kelly

Post Reply