Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
syedhoque1994
- Posts: 25
- Joined: Thu Oct 13, 2011 12:13 pm
Post
by syedhoque1994 » Fri Nov 04, 2011 11:04 am
Hi, my name is syedhoque1994, I am an Advanced Higher student that is currently engaged in the creation a simulation of Catch for my project. My simulation has two modes in the game: free points and Timer. If anyone has the code for the simulation, it would be very kind and helpful to notify me as soon as you can.
Thanks

-
dunbarx
- VIP Livecode Opensource Backer

- Posts: 10356
- Joined: Wed May 06, 2009 2:28 pm
Post
by dunbarx » Fri Nov 04, 2011 2:24 pm
Hi.
Welcome to the forum.
When I think of "catch", it either involves a baseball, or a Livecode keyword.
Unless I am old and completely out of it, what is it that you are trying to do?
Craig Newman
-
syedhoque1994
- Posts: 25
- Joined: Thu Oct 13, 2011 12:13 pm
Post
by syedhoque1994 » Sat Nov 05, 2011 1:42 pm
Hi, just to clarify "catch", it is a game of which i am developing for the Advanced Higher Computing Project and about to start implementing the code for the simulation. The game involves the user controlling a mobile safe by mouse, of which money stacks worth $100, $500, $1000 and $4000 must be caught of which the score is recorded in the game and is stored in a high scores table. There are 2 modes in this game: free points where the user can catch as many points as possible and try not to lose all 3 lives. In the Timer mode the user must collect as many points as possible within the 3 minute time limit. I would like to see the code for the catch game, for the implementation in my project and for reference and tips.
Thanks

-
dunbarx
- VIP Livecode Opensource Backer

- Posts: 10356
- Joined: Wed May 06, 2009 2:28 pm
Post
by dunbarx » Sat Nov 05, 2011 11:02 pm
Though it is possible that someone has done this, I think what you are asking is akin to wanting the code for an excel emulation. It can be done, it might have been done, but it probably has not been done.
On the other hand, maybe everyone knows about "catch" but me.
My point is that you are probably going to have to author this yourself. You will get all the help you need here, for as long as you need it. But you will have to learn the language and the tools of Livecode. The good news is that this task is easy and a lot of fun.
Good luck
Craig Newman
-
syedhoque1994
- Posts: 25
- Joined: Thu Oct 13, 2011 12:13 pm
Post
by syedhoque1994 » Sun Nov 06, 2011 7:34 pm
Hi, I am currently implementing the score label in my simulation of catch and making some progress in developing my simulation, although I am not certainly sure which algorithm to use for the label to record the current score, deduction if the user misses any money that they should grab, any bonus points that the user gains from catching money and the final score when all lives are lost even though I get the idea of the Livecode language. Please let me know if you find the algorithms for the score label in my simulation.
Thanks

-
dunbarx
- VIP Livecode Opensource Backer

- Posts: 10356
- Joined: Wed May 06, 2009 2:28 pm
Post
by dunbarx » Mon Nov 07, 2011 5:04 am
Hmmm.
Anyone already familiar with this "catch" thing?
Am I out of it? Is his assumption that the routines he is asking for, assumed ubiquitous in the LC ouevre, a reasonable one?
Craig Newman
-
syedhoque1994
- Posts: 25
- Joined: Thu Oct 13, 2011 12:13 pm
Post
by syedhoque1994 » Wed Nov 16, 2011 10:33 pm
Objects like images can move across the screen and also drop objects in any catch game, I only have the coding to make my image move once across the screen from the left to the right, where it stops. I would find it helpful if I can have the code to make the image go across the screen continuously and simultaneously drop objects in my catch game. Please notify me when anyone supplies me the code for the small solution.
Thanks

-
cbodell
- Posts: 61
- Joined: Wed Nov 09, 2011 7:27 pm
Post
by cbodell » Thu Nov 17, 2011 3:45 am
If you want to continuously slide objects across screen, just set the location of the object desired in a repeat structure from one side to other, but it would have to become invisible(or leave side of screen) so you can start it back from the other side.
If you want objects to fall, for example, when the mouse is clicked, its slightly more complicated, depending on the amount of objects. You have to repeat through each object thats visible on screen, then repeat or simulate the movement of that object.
It sounds like a project of some sort, for class? Have a look at the dictionary!