Search found 46 matches
- Sun Mar 13, 2016 8:06 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: on openCard or something else?
- Replies: 13
- Views: 10049
Re: on openCard or something else?
wouldn't that only work on the first tower dropped? after that they will not be able to increment from tower2 to tower3 and so on, so it will just screw it all up from there. What about this? I'm getting an error but I think if I can fix whatever is causing the error it should work. on MouseDown clo...
- Mon Mar 07, 2016 12:38 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: on openCard or something else?
- Replies: 13
- Views: 10049
Re: on openCard or something else?
I don't understand most of this code....is makeAndMoveTower a user created method? I didn't even know if you could do that in LiveCode or not. I also don't understand most of the code regarding mouseMove....
- Sun Mar 06, 2016 11:19 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: on openCard or something else?
- Replies: 13
- Views: 10049
Re: on openCard or something else?
So I tried using the grab command and the first tower worked great. the problem is every tower after that. I'm sure it can be fixed with a little code tweaking, I just don't know what needs to be done. Here is what I used: on MouseDown clone image "Tower" grab image "Tower" end MouseDown I used clon...
- Sun Mar 06, 2016 3:18 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: on openCard or something else?
- Replies: 13
- Views: 10049
Re: on openCard or something else?
Alright awesome info guys, thank you! I'm going to try this out and do some experimenting and let you know how it works out!
- Sat Mar 05, 2016 8:11 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: on openCard or something else?
- Replies: 13
- Views: 10049
Re: on openCard or something else?
Ok. Also, how can I ask the user if he is sure he would like to place an object there or not? Basically, when the user clicks, I want the program to answer by saying "Do you want to place tower?" and give the user the option for yes or no.
- Sat Mar 05, 2016 6:34 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: on openCard or something else?
- Replies: 13
- Views: 10049
on openCard or something else?
Is on openCard the right thing to use for things happening while the card is open? or is it just used for things that happens when the card opens? Is there something else to use "while" the card is open instead of right when it opens? For example, I am trying to let the player click somewhere and th...
- Sat Mar 05, 2016 6:24 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: damage from enemy and destroying object
- Replies: 29
- Views: 18007
Re: damage from enemy and destroying object
each level of the game needs to wait 180 seconds before enemies start to come, but the player also needs to have the option of skipping the wait time. Here is the code I tried to use, but it is giving me an error: wait for timeStart seconds or until mouse is down and mouseLoc is within rect of butto...
- Sat Mar 05, 2016 4:44 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: damage from enemy and destroying object
- Replies: 29
- Views: 18007
Re: damage from enemy and destroying object
Oh I see. so I am trying to set a wait time before the enemies start advancing, but I need to be able to set that wait time to 0 and start them immediately if a button is clicked. Right now I have the wait command set at 180 seconds, and the 180 is held in a variable. the start now button has code t...
- Thu Mar 03, 2016 4:44 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: damage from enemy and destroying object
- Replies: 29
- Views: 18007
Re: damage from enemy and destroying object
but why would it not let me stop the code? I put the amount of time in a variable so that I can use a button to change that variable to 0, thus skipping the wait time. But it didn't seem to work.dunbarx wrote:It didn't "freeze", it was just doing what you told it: wait 3 minutes.
You need more patience.
Craig
- Wed Mar 02, 2016 12:53 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: damage from enemy and destroying object
- Replies: 29
- Views: 18007
Re: damage from enemy and destroying object
You're okay, the code is probably in an infinite loop. There is a button on the top toolbar labelled "Messages". Click that so it gets bolded. That stops your scripts from running. You are a life saver! Thank you so much man! So, the code that caused this whole catastrophe was "on openCard wait tim...
- Tue Mar 01, 2016 3:05 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: damage from enemy and destroying object
- Replies: 29
- Views: 18007
Re: damage from enemy and destroying object
I was merely trying to make you see that certain languages have certain strengths. Many new users, often young, come here and want to make games. I know what you mean. I am not one of those people. lol. Like I said, I wouldn't even know what LC is if it wasn't for this class. Not saying I don't lik...
- Tue Mar 01, 2016 2:35 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: damage from enemy and destroying object
- Replies: 29
- Views: 18007
Re: damage from enemy and destroying object
it seems to be Craig's opinion. And I don't think that LC is necessarily made for creating games. It seems like it could be put to much better use doing other things.
- Tue Mar 01, 2016 2:16 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: damage from enemy and destroying object
- Replies: 29
- Views: 18007
Re: damage from enemy and destroying object
I completely agree with you guys that this is not the program to use for making this game, however it is an assignment for a class, and the choices of games were limited. Thank you for some of the answers. I will continue to look into these. I have run into a bit of a snag. While experimenting with ...
- Mon Feb 29, 2016 3:10 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: damage from enemy and destroying object
- Replies: 29
- Views: 18007
Re: damage from enemy and destroying object
also, I'm used to working with prefabs in game engines, where I can easily instantiate them. How do I do this with LiveCode? do I just leave everything on the card and turn them invisible?
- Mon Feb 29, 2016 2:42 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: damage from enemy and destroying object
- Replies: 29
- Views: 18007
Re: damage from enemy and destroying object
Take a look at this stack, Ethan. http://revonline2.runrev.com/stack/675/SheepHerder This helps a little bit but still leaves most of the problems unanswered. I still don't know how to make 10 separate waves, and I don't know how to make the enemies come in random intervals. I'm thinking maybe make...