HOME | DD

HaleyBopComet — Flash AS2.0 - Coding/Variable tutorial

Published: 2012-07-31 21:45:07 +0000 UTC; Views: 11791; Favourites: 201; Downloads: 244
Redirect to original
Description EDIT: AstroKitti's my old username on deviantArt, so that's why it says that in the corner.

A bunch of people were inboxing me and requesting for me to upload this - So here it is! I made this when I was 15, and I've learned a lot since then. I've learned better ways of doing things also.

But this will be useful to a beginner. I recommend looking up other tutorials as well, there are some really good ones here on deviantart

Hope this helps! ^^
Related content
Comments: 46

NILLACRAFT [2018-04-22 02:05:36 +0000 UTC]

What's up with the spam in the comments of every flash game or tutorial

👍: 0 ⏩: 0

Keira-Kally-sp [2016-07-06 09:36:15 +0000 UTC]

DONT READ THIS. YOU WILL BE KISSED ON THE BEST DAY OF YOUR LIFE. NOW THAT YOU'VE STARTED READING, DONT STOP. THIS IS SO FREAKY. 1 say your name 10 times 2. say your mum's name 5 times and your crushes name 3 times 4. paste this onto 4 other games. If you do this, your crush will kiss you on the nearest Friday possible. But if you read this and do not paste this, you will get bad luck. SEND THIS ON 5 DIFFERENT GAMES IN 143 MINUTES. WHEN YOUR DONE, PRESS F6 AND YOUR CRUSHES NAME WILL APPEAR IN BIG LETTERS. THIS IS SO FREAKY IT ACTUALLY WORKS.


👍: 0 ⏩: 0

IloveNear [2016-04-02 03:31:19 +0000 UTC]

DONT READ THIS. YOU WILL BE KISSED ON THE BEST DAY OF YOUR LIFE. NOW THAT YOU'VE STARTED READING, DONT STOP. THIS IS SO FREAKY. 1 say your name 10 times 2. say your mum's name 5 times and your crushes name 3 times 4. paste this onto 4 other games. If you do this, your crush will kiss you on the nearest Friday possible. But if you read this and do not paste this, you will get bad luck. SEND THIS ON 5 DIFFERENT GAMES IN 143 MINUTES. WHEN YOUR DONE, PRESS F6 AND YOUR CRUSHES NAME WILL APPEAR IN BIG LETTERS. THIS IS SO FREAKY IT ACTUALLY WORKS.

👍: 0 ⏩: 0

Kiddoriddo [2015-06-26 07:34:38 +0000 UTC]

It always says "try again" even if i type yay. 

on (release)
{
if (my_password == "yay")
{
check_password= "Correct!";
}
else
{
check_password = "Try again.";
}
}

👍: 0 ⏩: 0

FemFantasy [2015-05-14 01:33:18 +0000 UTC]

I know how to do some coding for Dream Maker but I don't know what this type of coding is for?

👍: 0 ⏩: 1

Oddhatt In reply to FemFantasy [2015-05-27 03:14:08 +0000 UTC]

Hidden by Admin

👍: 0 ⏩: 1

FemFantasy In reply to Oddhatt [2015-05-30 20:41:36 +0000 UTC]

What is Flash AS2 used for the most? Like what type of games can you make with it?

👍: 0 ⏩: 1

Oddhatt In reply to FemFantasy [2015-05-30 23:26:01 +0000 UTC]

Hidden by Admin

👍: 0 ⏩: 1

FemFantasy In reply to Oddhatt [2015-05-31 01:52:09 +0000 UTC]

Right now it's for me it's 9:48 p.m. What exactly is a "Visual Novel"?

👍: 0 ⏩: 1

Oddhatt In reply to FemFantasy [2015-05-31 02:00:43 +0000 UTC]

Hidden by Admin

👍: 0 ⏩: 1

FemFantasy In reply to Oddhatt [2015-06-04 22:34:56 +0000 UTC]

Is it a free download?

👍: 0 ⏩: 1

Oddhatt In reply to FemFantasy [2015-06-05 02:52:22 +0000 UTC]

Hidden by Admin

👍: 0 ⏩: 1

FemFantasy In reply to Oddhatt [2015-06-22 22:50:25 +0000 UTC]

Thanks

👍: 0 ⏩: 0

GodsAngelGG [2014-11-18 02:58:12 +0000 UTC]

Hidden by Admin

👍: 0 ⏩: 0

nomi-chie [2014-10-27 03:50:57 +0000 UTC]

Hidden by Admin

👍: 0 ⏩: 1

Oddhatt In reply to nomi-chie [2015-03-30 01:33:38 +0000 UTC]

Hidden by Admin

👍: 0 ⏩: 0

NeonF1sh [2014-09-26 01:20:33 +0000 UTC]

Wow, okay, you have no idea how much I have to owe you for this one. I'm making a game and there was a code that had been stumping me for two months, and thanks to this, I *finally* figured it out, and now everything is running smoothly. So, sincerely, thank you.

👍: 0 ⏩: 1

HaleyBopComet In reply to NeonF1sh [2014-10-05 22:19:03 +0000 UTC]

Yay! I'm so glad you were able to figure it out! I know how frustrating it is to not know what's wrong with your code, haha. So happy I could help!

👍: 0 ⏩: 0

Miss-panquesito [2013-07-03 02:59:55 +0000 UTC]

Como hago el mapa del juego de un sim date :/ ayuda por favor

👍: 0 ⏩: 1

asdronin In reply to Miss-panquesito [2014-01-11 02:29:35 +0000 UTC]

Bueno, nunca hice un simdate pero creo que seria como poner los dibujos de las casas/edificios de cada lugar al que ir y hacer que sean botones asi al hacer click ahi vas al sitio que quieras

👍: 0 ⏩: 0

RikaRandomly [2013-06-20 04:50:25 +0000 UTC]

Uhm. I thought I'd try to relearn things again....
And at lesson 5 it seems I did something wrong? I can't figure it out....

I entered the exact code you placed in the lesson and everytime I type "yay". It keeps going to "try again"....
Everything I type says "Try again"


Here's the code:

on (release)
{
if (my_password == "yay")
{
check_password= "Correct!";
}
else
{
check_password = "Try again.";
}
}



Could you help me? Or am I making a simple mistake that I seem to can't see? D : ?

👍: 0 ⏩: 0

Sarracuda [2013-05-22 15:34:06 +0000 UTC]

Hidden by Admin

👍: 0 ⏩: 0

kGushi [2013-02-19 03:07:39 +0000 UTC]

Hidden by Admin

👍: 0 ⏩: 1

HaleyBopComet In reply to kGushi [2013-02-19 17:47:13 +0000 UTC]

Aww, good! That was my intention, haha. I know I was really confused when I first started learning - I taught myself, so it took a while to figure it out. I hope you can use your newfound skills to create cool stuff though! x3

👍: 0 ⏩: 1

kGushi In reply to HaleyBopComet [2013-02-24 06:08:44 +0000 UTC]

Hidden by Admin

👍: 0 ⏩: 1

kGushi In reply to kGushi [2013-02-24 06:13:23 +0000 UTC]

Hidden by Admin

👍: 0 ⏩: 0

eggIett [2013-01-22 23:39:59 +0000 UTC]

Thank you~!
The other day, I realized that I had skipped basically... all the basics of flash and started with more advanced stuff. Of course, that didn't end very well...
So thanks so much!

👍: 0 ⏩: 1

HaleyBopComet In reply to eggIett [2013-01-23 01:03:42 +0000 UTC]

Aw, you're welcome! I know how utterly confused I was when I first started learning... It took forever, since I taught myself. So I'm glad it helped! (Haha, sometimes I look back on my own tutorial as a reference guide when I go too long without coding.)
^___^

👍: 0 ⏩: 0

RikaRandomly [2012-08-29 05:47:52 +0000 UTC]

Omg, this tutorial has helped me ACTUALLY understand the program!! Instead of just copy and pasting, and just following orders and whatnot! And just thinking "Buttons are just moving foward, nothing else" but really, "Buttons can be anything~ Like. Picture pop up!"

Thanks sooooo much!!!!!!!

👍: 0 ⏩: 1

HaleyBopComet In reply to RikaRandomly [2012-08-30 01:49:09 +0000 UTC]

Aaww, I'm so happy it helped!!! Yay!! Hehe, have fun creating projects with this knowledge~ (^^)

👍: 0 ⏩: 1

RikaRandomly In reply to HaleyBopComet [2012-10-14 04:35:53 +0000 UTC]

Please don't get mad but could I ask you something? (People tend to get mad or ignore me when I ask this...)

But how do you let players type their names?
So when typed, the characters can say their name within the text itself?

Thanks!! : )))

👍: 0 ⏩: 1

HaleyBopComet In reply to RikaRandomly [2012-10-14 23:37:48 +0000 UTC]

Create a variable in which you can type the name in, and give it a name like var_name. Then when referencing back to it, here's what you do with every text that a character says:

Create a dynamic textbox and name it something like "textbox", then on the actions panel for the main frame, type in the following code:

textbox = "Hey, " + var_name + ", how are you?";

I hope this helps =3 It's been a while since I've done that, so I hope it works! Message back if there's a problem! (^^)

👍: 0 ⏩: 1

RikaRandomly In reply to HaleyBopComet [2012-10-15 03:42:38 +0000 UTC]

OHHH! THANKS THANKS THANKS! I get it!
Wow... that's going to be a lot of work though haha...
Say, how can I make words appear italic then? Or.. change color?

AHH! Sorry I'm bombarding you with questions >3<

👍: 0 ⏩: 1

HaleyBopComet In reply to RikaRandomly [2012-10-15 18:03:46 +0000 UTC]

So far I haven't been able to figure out how to change individual words in a textbox to be a different style (bold, italic, etc.) or color without changing the whole textbox to be like that ><; Haha, but you can do the latter by changing the settings in the Properties tab. :3

👍: 0 ⏩: 1

RikaRandomly In reply to HaleyBopComet [2012-10-16 03:04:43 +0000 UTC]

Oh okay then! It's fine! Thanks! You are SUCH a big helppp!!! This is good enough really! Thanks again!!

I could, I'd give you the BIGGEST star in the world, but science says giving you that will burn you to ashes : (

👍: 0 ⏩: 1

HaleyBopComet In reply to RikaRandomly [2012-10-17 01:08:45 +0000 UTC]

Aww, darn. I was looking forward to my star T.T

👍: 0 ⏩: 1

RikaRandomly In reply to HaleyBopComet [2012-10-17 01:54:29 +0000 UTC]

I'm sorry! but I don't wanna risk burning you into ashes...

Forgive me please

👍: 0 ⏩: 0

LGstephy [2012-08-19 03:55:37 +0000 UTC]

You have no idea how much this tutorial helped me.
Before finding this, I was completely lost when it came to variables.
This is the first tutorial that has made any sense to me. The rest have always seemed completely foreign or nonsensical.

I couldn't possibly thank you enough <3

👍: 0 ⏩: 1

HaleyBopComet In reply to LGstephy [2012-08-22 04:32:40 +0000 UTC]

You have no idea how happy this comment makes me If I can help at least one person, then I feel very satisfied ^.^ I know that I personally was completely confused years ago when I first started learning, so I had to do all my research and it tooks ages to do so.

I'm so glad I helped!

👍: 0 ⏩: 0

RaynbowzRule [2012-08-01 00:13:41 +0000 UTC]

omg, thanks
I totally bombed those quizzes though...
but none the less thanks

👍: 0 ⏩: 1

HaleyBopComet In reply to RaynbowzRule [2012-08-01 21:22:32 +0000 UTC]

Aw, just keep trying! Everything in this tutorial is everything you need to know to make a dating sim ^__^ Just in more... learning instead of step-by-step xD;

👍: 0 ⏩: 1

RaynbowzRule In reply to HaleyBopComet [2012-08-02 02:30:11 +0000 UTC]

yeah I practiced twice and tried to create my own codes, but I really love this tutorial and im actually learning from it

👍: 0 ⏩: 1

HaleyBopComet In reply to RaynbowzRule [2012-08-02 18:40:35 +0000 UTC]

Good! If you have any questions, please feel free to ask! I don't mind at all

👍: 0 ⏩: 1

RaynbowzRule In reply to HaleyBopComet [2012-08-02 19:02:57 +0000 UTC]

ok

👍: 0 ⏩: 1

RaynbowzRule In reply to RaynbowzRule [2012-08-05 22:09:28 +0000 UTC]

hey sorry to bug you, but I have been practicing with codes and junk, but Im having an issue with my current experiment, could you look at the coding please and tell me whats wrong with it? [link]

👍: 0 ⏩: 1

RaynbowzRule In reply to RaynbowzRule [2012-08-18 00:38:01 +0000 UTC]

nevermind, i got it~

👍: 0 ⏩: 0