Be a Supporter!

Variables Tutorial

rated 3.76 / 5 stars
Share Links:
More Games

Click on an icon to vote on this!

Credits & Info

Aug 9, 2005 | 2:16 PM EDT

If you liked this, check these out!

Author Comments

I made this becouse I want help people!
Those who already know everything about variables can skip this tutorial.And again, I live in Finland so my english grammer sucks. If you don´t understand something, skip it. I hope you will learn something!



Rated 5 / 5 stars


too good!really works!I'll use it for a game!
and I WILL credit you!


Rated 1.5 / 5 stars

(title in work)

^^Good Points^^
It was a decent tutorial. Some decent information was found in here, if you have the knowhow to decipher what you are saying.

^^Needs Improving^^
It didn't really seem like you were too knowledgeable on the subjects covered in this one. For example, when creating a scoring system, you don't explain anything very well at all. I.e., how to change the score increments and how to implement them. You would change the target to a button, but the way you explain it sounds like you are just creating a random button. Needs some work.


Rated 5 / 5 stars


and to answer the question (although I don't know the specific code) you do something like this:
1: Set up "cent" variable
2: When "cent" is 100, set "cent" to 0
3: Then (in the same IF) add 1 to "dollar"


Rated 5 / 5 stars

great, but:

how can I make it so that I have dollars and cents, and when I reach 100 cents, they go to 0 and dollars move up one?


Rated 3.5 / 5 stars

Really useful

I found this really useful. I am trying to learn action script and variables so this could be usefull, especially for a game that's in the pipeline. Anway, to the last reviewer if you don't want the money to go under zero, make the button code say something like;

if (money) = 0 {
this visible = false

Please note, that exact code won't work, it's just an example.