Hi,
I've been trying to get the intersect function in LiveCode to work without any luck. It's a simple game that involves catching a ball that's dropping straight down into a bucket. I got the ball to drop into the bucket but I want to use the intersect function to detect when something has dropped into the bucket and make it count for points. My question is could you explain how to implement the intersect function better than the dictionary and/or provide sample code that I could tinker with?
Intersect Function
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Livecode Opensource Backer
- Posts: 1336
- Joined: Sun Jul 12, 2009 10:53 am
- Location: Bordeaux, France
Re: Intersect Function
Hi Danny...
I dont really know what you want to do... Do you eventually want to have the bucket moving left to right, so that it becomes more a game of 'skill' rather than just having a ball drop into a bucket ?
I have attached another stack showing the ball dropping into the bucket... it uses the intersect function to add to a field 'score'... but if the bucket is not moving then you could just add to the score when the ball finishes 'dropping'...
be well
Dixie
I dont really know what you want to do... Do you eventually want to have the bucket moving left to right, so that it becomes more a game of 'skill' rather than just having a ball drop into a bucket ?
I have attached another stack showing the ball dropping into the bucket... it uses the intersect function to add to a field 'score'... but if the bucket is not moving then you could just add to the score when the ball finishes 'dropping'...
be well
Dixie
- Attachments
-
- DannyIntersect.zip
- (96.49 KiB) Downloaded 426 times
Re: Intersect Function
Yes I'm tying to make it more of a "skill" game. The intersect worked great I'm currently tying make the balls fall at random times and then progressively get faster. If you have ideas go ahead and shout them out.Dixie wrote:Hi Danny...
I dont really know what you want to do... Do you eventually want to have the bucket moving left to right, so that it becomes more a game of 'skill' rather than just having a ball drop into a bucket ?
Also if you know of a timer function in the dictionary that could help make "levels" (like after x amount of time start dropping more)to get progressively faster let me because all I could find were ones to show the clock.
Re: Intersect Function
Hi,
How you can check the intersec if the user move the bucket? I mean how to check it? so in the stack example the intersect is checked when the ball finish the movement, isn't?
Salut,
Josep
How you can check the intersec if the user move the bucket? I mean how to check it? so in the stack example the intersect is checked when the ball finish the movement, isn't?
Salut,
Josep