It all started when I saw the Stride contest…a good idle will do, (I think…) Can anyone help?
|
|
|
|
|
well you could always go with the then add a text box to display your score and yep… thats pretty much it… |
|
|
Thanks, i’ll try that. (Hey its worth a try isnt it???) |
|
|
Originally posted by shittasticf: eh, he did it the fancy shmancy way |
|
|
Hmmmm….its saying I have an error… ‘(’ expected. What does that mean and how do I fix it? |
|
|
Where? It says: ‘(’ expected function onEnterFrame { |
|
|
it means you have to put the parameters……. () ALWAYS REPEAT ALWAYS ALWAYS ALWAYS FOLLOWS FUNCTIONS EVEN IF ITS EMPTY… always |
|
|
yeah i know i thought it would be obvious and he’d put them in so i didn’t even bother to go back and change it but now i did, so instead of copying and pasting it, he could learn about what hes doing first =/ |
|
|
So the text box has to be dynamic? |
|
|
yeah it must be dynamic just make a textbox, give it the instance name scoreText and put in the code i told you but make sure you know what it means |
|
|
Ok. But NOW the text box is saying: NaN, what should I do… |
|
|
name the variable score |
|
|
Nope, still says it. |
|
|
Actually, if you want to split hairs, it should really be var score:int = 0; but it was obvious (to anyone who knows what they’re doing) what was meant by that code snippet. It’s more like “know what you’re doing before expecting people to write your game for you.” |
|
|
Just FYI, its not going to win. It won’t even place, or be anywhere near the runners up slots (11th through 20th place). A good endurance game has a way to lose. |
|
|
Oh my god, the entire beginning I thought was jsut one person. Also, yea Idle wont win much. |
|
|
I have source code available on my, er, ‘game’, “Simple Idle” It’s flex-based, so you can continue building an interface easily, and make it into something more substantial (well, you know, as far as idle games go) http://www.kongregate.com/games/BillysGames/simple-idle |
|
|
Originally posted by faiuwle: lol love it |
|
|
Actually, if you want to split hairs, it should really be var score:Number = 0; there’s no int in AS2. |
|
|
Jeez I dont care if it doesnt win, I just need a tutorial! |
|
|
The complete source code is in the fourth post. |
Loading