00:00
00:00
Newgrounds Background Image Theme

444rgh just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Variables Tutorial

Share Collapse

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!

Log in / sign up to vote & review!

coooooool!

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

(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.

Wicked...

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"

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?

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.

Credits & Info

Views
6,163
Faves:
7
Votes
14
Score
3.22 / 5.00

Uploaded
Aug 9, 2005
2:16 PM EDT