How to create a barrier/wall for graphics
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
How to create a barrier/wall for graphics
I'm new to LiveCode, and I'm trying to make an app that will help me explore kids' counting. I've designed a basic program that allows kids to drag balls into a cardboard box. The thing is, currently, the program allows them to drag balls through the side of the box as though the walls don't matter. How can I turn all but the top of the box into something impenetrable so that the only way to get balls into the box is through the top (which is open)?
-
- VIP Livecode Opensource Backer
- Posts: 157
- Joined: Thu Jun 29, 2006 4:16 pm
Re: How to create a barrier/wall for graphics
Scott Rossi's Tutorials might help. Take a look at Drag Sampler.... http://www.tactilemedia.com/site_files/ ... rials.html
Re: How to create a barrier/wall for graphics
Hi.
So much fun coming...
Go to the dictionary and look up "intersect". It is a function that will return a value if any portion of one object overlies another. So if you had a graphic made of lines, you could, using perhaps the "mouseMove" message, determine whether or not the objects you are dragging ever contact those lines. If they did, you simply self destruct the computer.
Do you know what the "rect" of an object is? Write back if you need more.
Craig Newman
So much fun coming...
Go to the dictionary and look up "intersect". It is a function that will return a value if any portion of one object overlies another. So if you had a graphic made of lines, you could, using perhaps the "mouseMove" message, determine whether or not the objects you are dragging ever contact those lines. If they did, you simply self destruct the computer.
Do you know what the "rect" of an object is? Write back if you need more.
Craig Newman