Search found 7 matches
- Fri Mar 11, 2016 3:13 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Count Down Loop
- Replies: 14
- Views: 9194
Re: Count Down Loop
KatieKat, I got around your problem by making a it go back to the level select card when the game is over and also making a gameRunning boolean. gameRunning is false when the card opens, you press the start button and it becomes true and everything is depedent on gameRunning being true. I put it in ...
- Fri Mar 11, 2016 3:00 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Count Down Loop
- Replies: 14
- Views: 9194
Re: Count Down Loop
Craig, the code was: global bank -- given a number in the stack that was carried over to the card, and it worked global cost put 150 into cost -- cost of the tower on mouseUp if bank > cost then subtract cost from bank else if bank = cost then subtract cost from bank else answer "You don't have enou...
- Fri Mar 11, 2016 12:26 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Count Down Loop
- Replies: 14
- Views: 9194
Re: Count Down Loop
Thank you Craig. That definitely did the trick. I've found out that I cannot subtract a variable holding a number from another variable holding a number. Is it just a bug I've run into or is this actually the case?
- Thu Mar 10, 2016 7:31 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Count Down Loop
- Replies: 14
- Views: 9194
Re: Count Down Loop
Thank you everyone. I'm having a problem now with clicking the main menu button and it throwing an error when I do. The error is when it goes back to the main menu card and the timer hasn't finished its loop it tells me button "startButton": execution error at line 16 (Chunk: no such object), char 1...
- Wed Mar 09, 2016 9:07 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Count Down Loop
- Replies: 14
- Views: 9194
Re: Count Down Loop
Thank you so much. That totally works! I'm not sure what you mean by step through each handler. I prefer languages such as Java, C++, and C#. I don't know why this goes so far over my head.
- Tue Mar 08, 2016 11:53 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Count Down Loop
- Replies: 14
- Views: 9194
Count Down Loop
I want to count down from 60 (1 minute) for a game that I'm making. I apologize in advance because this may be a really easy solution. I have been trying to use repeat, but it just counts down too fast. It to countdown a second at a time. Here is the code I have so far. local timerCount on mouseUp p...
- Tue Feb 16, 2016 8:48 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: figuring out this language
- Replies: 26
- Views: 18273
Re: figuring out this language
Hi OP, I too and used to languages such as C#, Java, and C++. This LiveCode language is driving me up the wall. I don't understand it at all, and there are really no good tutorials out there for it that I can find. I have this same exact project that I'm working on. Must be a common beginner project...