The code
On mouseUp
put item 3 of the rect of this card into xMax
put item 4 of the rect of this card into yMax
put random(xMax) & "," & random (yMax) into tRandomCoord
answer tRandomCoord
end mouseUp
did work to make a random point. But the problem is I already have 2 rectangles in the card ...
Search found 5 matches
- Tue Nov 30, 2010 8:39 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: {Need Help!} Random Coord Generator and Moving Object There!
- Replies: 9
- Views: 8251
- Tue Nov 23, 2010 9:10 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: {Need Help!} Random Coord Generator and Moving Object There!
- Replies: 9
- Views: 8251
Re: {Need Help!} Random Coord Generator and Moving Object There!
As you can probably now guess, I am REALLY feeling stupid right now. After the example, I still can't find a way to get the random number in any way whatsoever. When I click the button that is supposed to give me a number when I tested it, nothing happens. When I tell it to put the number into a ...
- Tue Nov 23, 2010 8:41 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: {Need Help!} Random Coord Generator and Moving Object There!
- Replies: 9
- Views: 8251
{Need Help!} Random Coord Generator and Moving Object There!
Is there a way to find random coordinates and then proceed to move an object there? This is another extension of the Cannonballs! Tutorial that I did and after the "intersect" command, I now am stuck on someone telling someone the sliders to move to a certain area and hitting the target. Anyone know ...
- Tue Nov 23, 2010 8:37 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: {NEED HELP!} Making Items Dissapear on impact
- Replies: 2
- Views: 3225
- Thu Nov 18, 2010 8:53 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: {NEED HELP!} Making Items Dissapear on impact
- Replies: 2
- Views: 3225
{NEED HELP!} Making Items Dissapear on impact
Ok, I am new to RunRev, and I am new to the forums too. I was doing some tutorials to learn how to do things using the old newsletters, and I tried the "Cannonballs" one. Here's the link to the overall project, so you can access all parts of it.
http://www.runrev.com/newsletter/january/issue41 ...
http://www.runrev.com/newsletter/january/issue41 ...