HOME | DD

legioKat — Flash Sim Dating Tutorial (HP, Days, etc)

Published: 2012-08-02 22:37:20 +0000 UTC; Views: 41886; Favourites: 690; Downloads: 642
Redirect to original
Description This tutorial deals with exactly what it is titled as...

HP, Days, Money, and all of those other stats. Also it goes into stuff about a sequenced dialogue path. 
It is assumed that you have general knowledge on flash (I USE MACROMEDIA FLASH PROFESSIONAL 8). If this looks like a foreign language to you, go to Pacthesis  's page and she has a very neat tutorial on the basics. Then, come back and see if any of this makes sense. 

If you are confused, feel free to comment below so that I (In the rare event that I ever come on here) , or another Deviant can maybe help you. 
If you think that this tutorial is a waste of megabytes go check out Youtube, kirupa, and Macromedia flash forums for better ones. Also, other Deviants here are way better at this stuff than I am, so take a tour around Deviantart also. 

If you do happen to comment on the tutorial, do not be offended if I answer +/- 4 months later. Also, do not be offended if I never answer at all. 
If I don't answer your question, and you see that  I have answered others (aka it looks like I've deliberately avoided your question), it is only because of one (or more) of the following circumstances:
    a. I don't know the answer
    b. the answer is in one of my other tutorials
    c. you aren't using MACROMEDIA FLASH PROFESSIONAL 8 (All of my tutorials are based off of MACROMEDIA FLASH PROFESSIONAL 8; if you do not have MACROMEDIA FLASH        PROFESSIONAL 8, and run into problems, I most likely can't help you because I don't use  other forms)
    d. I'm not sure what you're asking
    e. There's a similar question already figured out in the comment section

If all else fails, send me a  note. I will answer those before heading to the comment section.

Happy Flashing
________
Check out my other tutorials on this stuff down below!
Make a health bar/love meter/etc!!
legiokat.deviantart.com/art/He…

Here is a tutorial on making cheat codes and passwords!
legiokat.deviantart.com/art/Pa…


here is a tutorial on how to let the player choose their own name for the character!
legiokat.deviantart.com/art/Na…

Here is my tutorial involving Inventory, Gift-giving, and a little bit on shops!
legiokat.deviantart.com/art/In…
Related content
Comments: 331

legioKat In reply to ??? [2013-03-11 01:03:59 +0000 UTC]

Hmm... Check your variables. Like make sure they aren't weird?

👍: 0 ⏩: 1

motokocat22 In reply to legioKat [2013-03-11 01:23:21 +0000 UTC]

I have

👍: 0 ⏩: 1

legioKat In reply to motokocat22 [2013-03-11 02:17:12 +0000 UTC]

ok, well go to the first frame of your thing where I told you to declare your variables. Check to see if they are all set to what they need to be set as. Then make sure that you don't declare any other variables on any other frame after that one. Then take your button, and break it apart until it looks like there's tons of white dots all over it. Then convert it to a button. (if its a movieclip-button, just make it a button for now so we can test it). then go to actions. type in:

on(release){
if(hp>=40){
hp -= 40;
money += 25;
}else{
this.enabled = false;
}
}

if that doesn't work, I don't know whats up. Sorry

👍: 0 ⏩: 1

motokocat22 In reply to legioKat [2013-03-23 14:09:46 +0000 UTC]

Im gonna try to download Macromedia Flash 8 professional
I think its just because I use Flash CS6

👍: 0 ⏩: 1

legioKat In reply to motokocat22 [2013-04-18 00:24:34 +0000 UTC]

oh, if you have anything but Flash 8 professional, you are going to run into problems.

👍: 0 ⏩: 0

KawaiiKammi In reply to ??? [2013-03-10 00:01:32 +0000 UTC]

Thank you very much! Is so kind from you to do this, is very helpful for the begginers

👍: 0 ⏩: 1

legioKat In reply to KawaiiKammi [2013-03-10 00:18:29 +0000 UTC]

👍: 0 ⏩: 0

leiko-7fox In reply to ??? [2013-02-22 02:01:00 +0000 UTC]

Anyone know if Adoble Flash CS4 Professional can be used to make these type of games? Because that's what I have.

If not... link me a free program perhaps? Anything will be appreciated ^^

👍: 0 ⏩: 0

agamergoddess In reply to ??? [2013-02-17 18:40:58 +0000 UTC]

What Version of Flash are you/he/she using????

👍: 0 ⏩: 1

legioKat In reply to agamergoddess [2013-02-17 23:15:02 +0000 UTC]

lol, definitely a she.
Macromedia Flash 8 professional.

👍: 0 ⏩: 1

agamergoddess In reply to legioKat [2013-02-18 12:59:46 +0000 UTC]

Haha sorry XD is that just like Macromedia Flash MX 2004? Or is it something tottally diffrent? (Sorry if this is a stupid question)

👍: 0 ⏩: 1

legioKat In reply to agamergoddess [2013-02-18 14:10:56 +0000 UTC]

Honest to god I do not know. It's whatever pacthesis uses.

👍: 0 ⏩: 1

agamergoddess In reply to legioKat [2013-02-18 15:36:45 +0000 UTC]

Oh cool thanks.

👍: 0 ⏩: 0

Chumiiwa [2013-02-14 11:31:53 +0000 UTC]

How about the result of who you get to date in the end? Like, if there are more than one character :C

👍: 0 ⏩: 1

legioKat In reply to Chumiiwa [2013-02-15 21:33:11 +0000 UTC]

I think you would click on the one that you want to end with, and if he had enough experience, you could get the good ending. So you would do the talk function that I have in the tutorial so gain experience and what not. Then when the game is over, you click on the guy you want and if you have enough experience with him you get whatever ending you want.

👍: 0 ⏩: 0

StarryBaby33 In reply to ??? [2013-02-09 13:59:38 +0000 UTC]

Um, would this work on Flash CS6? Because that's the one my dumb PC came with, and my mum won't allow me to buy any others.

👍: 0 ⏩: 1

legioKat In reply to StarryBaby33 [2013-02-09 18:32:57 +0000 UTC]

I have no idea. I use Macromedia Flash 8 professional. Some people say it wont because of actionscript, but I don't know.

👍: 0 ⏩: 0

SilkBlue In reply to ??? [2013-01-23 10:01:50 +0000 UTC]

I just wanted to tell you that i am very thankful that you posted this codes. ERMEHGERD I WUV U SO MUCH!

👍: 0 ⏩: 1

legioKat In reply to SilkBlue [2013-02-02 00:26:47 +0000 UTC]

<3

👍: 0 ⏩: 0

aka-no-gabby In reply to ??? [2013-01-17 16:53:37 +0000 UTC]

I'm sorry...
Can I draw a character in photoshop and then insert him in the program? (macromedia flash)
thanks

👍: 0 ⏩: 2

breezyflake In reply to aka-no-gabby [2013-01-19 09:18:24 +0000 UTC]

Yeah, you save the file and then go to Flash. File >> Import >> Import to Stage.


Haha sorry for replying ^^

👍: 0 ⏩: 1

aka-no-gabby In reply to breezyflake [2013-01-19 22:40:10 +0000 UTC]

Ok, I'll try, thanks!

👍: 0 ⏩: 0

legioKat In reply to aka-no-gabby [2013-01-18 00:23:19 +0000 UTC]

What are you sorry for? And I suppose so. Like copy/paste? I haven't really played with Photoshop that much so I don't know.

👍: 0 ⏩: 1

aka-no-gabby In reply to legioKat [2013-01-19 22:39:08 +0000 UTC]

sorry for ask...
Thanks, I'll prove it!

👍: 0 ⏩: 0

breezyflake In reply to ??? [2013-01-17 13:27:03 +0000 UTC]

Another question, why is flash's canvas indefinite? Like, why does the... Stuff exceed the stage? Sorry for the second question, haha. I might have a few more other questions as soon as I get my flash up and running ^_^"

👍: 0 ⏩: 1

legioKat In reply to breezyflake [2013-01-18 00:24:23 +0000 UTC]

Honestly, I don't know. Lol. Why don't you send me a note about those other questions instead of crowding up the comments of this thing.

👍: 0 ⏩: 0

xinshin [2013-01-09 13:30:41 +0000 UTC]

sorry but l got another question ><''
if we choose the right option for the 1st conversation, we would get +10 points right?
yeah, l got the 10pts, however, l do not know why it won't go to the second conversation. It will just direct me to the 1st conversation again and again until l got no more HP left. Weird..0_0

my code :

on(release){
if (hp > 0) {
hp -= 10;
gotoAndPlay("hiyoritalk1");
}else if(hp<10) {
gotoAndPlay ("nohp1");
}else if(hiyori == 10) {
hp -= 10;
gotoAndPlay ("hiyoritalk2");
}else if(hp<10){
gotoAndPlay ("nohp1");
}
}



"hiyori" stands for my exp, since l have few characters, so l used the char's name instead

👍: 0 ⏩: 2

NotedDreams In reply to xinshin [2013-01-12 16:06:55 +0000 UTC]

hey, so the problem your having is that you want to go to the second convo right?
May I ask, are you trying to have it so that if the player clicks the wrong answer, then leaves, then comes back to chat with the charcter, they move on to the second convo instead of going back to the first?

👍: 0 ⏩: 1

xinshin In reply to NotedDreams [2013-01-12 16:16:18 +0000 UTC]

I wanted the player to choose the correct option and then move on to the 2nd convo if the char has 10 exp for the 1st convo with the player.

However it still get to the 1st convo no matter how many times l choose the correct one :s l've gained up to 50 exp with char until no hp left.

If u know how to solve it, mind to help? :0

Or if possible u could also give me the trick to get the player to the 2nd convo even if player choose wrong option. 'cause l also wanna know how to get multiple endings when chosen wrong options.

👍: 0 ⏩: 1

NotedDreams In reply to xinshin [2013-01-12 16:41:52 +0000 UTC]

Ok I'm no wizard in Flash, but I finally figured out how to get the player to the second convo even if they chose the wrong answer
Heres my code:
_____________________
on(release){
if (exp == 0) {
hp -= 10;
gotoAndPlay("styxconvo1");
}else if(hp<10) {
gotoAndPlay ("no hp left");
}
}
_____________________
Alright, so you would paste that code on your chat button, then create a completely blank frame. On that blank frame make a dynamic text box and give it the var exp (dont forget to declare your exp variable on your very first frame!).
Heres the code for the wrong answer:
__________________________
on (release) {
exp = + 10;
_root.gotoAndPlay("styxbad1");
}
____________________________
So paste that code on the wrong answer!
And heres the code for the good answer:
__________________________
on (release) {
_root.gotoAndPlay("styxgood1");
}
on (release) {
exp = + 10;
Styxexp += 10;
}
_________________________
Paste that on the right answer.......
How the code works, is that if the player clicks the wrong answer, +10 exp will be added to your blank frame. When the player clicks chat again they are directed to the second convo and if they choose the wrong answer again they can still move on to the net convo, and so forth!
If they choose the right answer they are still directed to the next convo
Let me know if that helped~
Oh and if you want to repeat the chat code, just paste it again and change the numbers

👍: 0 ⏩: 1

xinshin In reply to NotedDreams [2013-01-14 04:58:27 +0000 UTC]

Thank u so much!! It's super clear and I will take note of this in a notepad. it's pretty much what l learn in the tutorial just that l needed to create blank frame. XD

👍: 0 ⏩: 1

NotedDreams In reply to xinshin [2013-01-14 20:03:59 +0000 UTC]

welcome!

👍: 0 ⏩: 1

xinshin In reply to NotedDreams [2013-01-15 11:35:26 +0000 UTC]

Not sure if u noe this, but if it's having multiple endings, do u know how to make those like "points 200<500 = best friend"? l know its some sort to be like that though Owo

👍: 0 ⏩: 1

NotedDreams In reply to xinshin [2013-01-16 00:12:11 +0000 UTC]

I'm not too sure, I think legiokat mentioned it somewhere in these comments.......

👍: 0 ⏩: 0

legioKat In reply to xinshin [2013-01-10 01:36:19 +0000 UTC]

Check you buttons

👍: 0 ⏩: 1

legioKat In reply to legioKat [2013-01-10 01:36:30 +0000 UTC]

And frame names

👍: 0 ⏩: 1

legioKat In reply to legioKat [2013-01-10 01:46:31 +0000 UTC]

This code sends someone with say 30 hp to one slide, but if they have 10, to another. Unless you mad two slides the same.

So... Get rd of the if(hp==10) stuff; change your first if statement to hp>=10;

👍: 0 ⏩: 0

xinshin In reply to ??? [2013-01-09 05:09:34 +0000 UTC]

can l ask how to prevent the hp from getting a -10hp?
'cause l copied and pasted the "no exp" code to the option button and became -10 when l choose the bad option dialogue. x.x

for example if the player has 10 HP left,
and it needs 10HP to talk to the character, >> HP : 0
and when u choose the wrong option for the character while talking,
the HP becomes HP : -10.

so how do l avoid negative HP?

my code on the bad option button :

on (release) {
_root.gotoAndPlay("noexp1");
}
on (release){
var hp = hp - 10;
energy = hp;
}



l wanna make sth like "if hp is 0, disable -10HP" but dunno how. :/

👍: 0 ⏩: 1

legioKat In reply to xinshin [2013-01-10 01:35:57 +0000 UTC]

I can't actually view my flash at the moment because I have no access to a legit compute and my phone won't download it; but I am pretty sure I had something with the else, if, this.enabled=false code i there. If its not, ~fishisfriendz or however she spells it, has a great variable tutorial that covers this topic

👍: 0 ⏩: 0

breezyflake In reply to ??? [2013-01-05 07:18:28 +0000 UTC]

How do I make names? Like at the start of the game.

👍: 0 ⏩: 1

legioKat In reply to breezyflake [2013-01-05 16:21:19 +0000 UTC]

input text box, name it whatever you want, then whereever you want the name, make a dynamic text box with the same name.

👍: 0 ⏩: 1

Miitu-chan In reply to legioKat [2013-01-08 22:00:06 +0000 UTC]

So you do this to make the box of where you can write your name on? owo
//like in the beginning of the game there's random name first but then you can change it as the me you want it to : 3

I actually need help with that^^'' And with other things really

👍: 0 ⏩: 1

legioKat In reply to Miitu-chan [2013-01-09 02:27:13 +0000 UTC]

Yes

👍: 0 ⏩: 0

apoeticalfriday In reply to ??? [2013-01-02 15:02:22 +0000 UTC]

Hiya! (: Haven't actually tried it yet, but are the spaces between the brackets necessary (like the enter stuff)? Sorry xD I've been using Ren'Py to code my game, but I now realize Flash might be easier...

👍: 0 ⏩: 1

legioKat In reply to apoeticalfriday [2013-01-02 15:27:51 +0000 UTC]

no need at all. I just think it makes it more readable.

👍: 0 ⏩: 1

apoeticalfriday In reply to legioKat [2013-01-02 23:18:06 +0000 UTC]

So, } else {
this.enabled = false;
}
}

is just the same as
} else {
this.enabled = false; }} ? Sorry if I'm such a noob TT_TT

👍: 0 ⏩: 1

legioKat In reply to apoeticalfriday [2013-01-02 23:44:32 +0000 UTC]

oh, you mean that! no, I would place those on the correct lines. I thought you meant like spacing between the "=" sign and stuff.

👍: 0 ⏩: 0

Enma143 In reply to ??? [2012-12-31 15:44:00 +0000 UTC]

how can I make something like eg: unlock all character in ending when we unlock ending of all characther...how to make cheat code? how to make gift

👍: 0 ⏩: 1

legioKat In reply to Enma143 [2012-12-31 15:49:41 +0000 UTC]

So... You're asking how to create a cheat code? Like input text boxes and such? If that is your q, I am working on it myself actually. And what do you plan to do with the gifts, like give it to a character and then +exp with them?

👍: 0 ⏩: 0

Pacthesis In reply to ??? [2012-12-29 16:43:37 +0000 UTC]

This is a great tutorial! I'm sure many will find it very useful! ;7;

👍: 0 ⏩: 1


<= Prev | | Next =>