HOME | DD

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

Published: 2012-08-02 22:37:20 +0000 UTC; Views: 41887; 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 ??? [2012-12-29 20:17:19 +0000 UTC]

Lol! Thank you Amy!

👍: 0 ⏩: 1

Enma143 In reply to legioKat [2012-12-31 15:43:52 +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 ⏩: 0

AiriChanFP In reply to ??? [2012-12-25 11:29:50 +0000 UTC]

soo i did this al but when i click like sleep, the number of my days disappear, and if click again it becomes 1 again, but the hp just goes to 110 and 50 and stuff and when i work its the same it just gives random numbers, what am i doing wrong? i tried it several times, and put everthing on diffrent layers and stuff, plsss help me this is an awesome tutorial <33

👍: 0 ⏩: 1

legioKat In reply to AiriChanFP [2012-12-29 20:18:49 +0000 UTC]

What I the coding for your sleep button? Sounds like all the craziness is coming from there

👍: 0 ⏩: 1

AiriChanFP In reply to legioKat [2012-12-30 23:11:20 +0000 UTC]

this is what i got:
on(release){
day += 1;
hp += 15;
}

👍: 0 ⏩: 1

legioKat In reply to AiriChanFP [2012-12-31 01:19:12 +0000 UTC]

hmmm... I tested this in one of my flash projects and it worked just fine.
Putting everything on different layers doesn't seem really necessary.

check your variables and such with this...
[link]
^^I don't know if this will help, but It might.

(what do you mean the hp goes to 110 and 50 and stuff.? Does it switch to both randomly or...)

Is your work button practically the same as your sleep?

I hope you can get back to me soon, because I really wanna solve this! Feel free to send me a note instead if you want. It doesn't matter though because I am sure many people might need the help. )

👍: 0 ⏩: 0

MeiMaikio In reply to ??? [2012-12-06 17:42:57 +0000 UTC]

Hello! LegioKat San! Uhm, can I ask a question?

How do you put in codes to unlock stuff/people/ect..? Like in Pacthesis' one where you put in code to unlock a character or get HP?

AND.

How do you make it so the more relation status you're at (eg. Stranger/Friends/Lover) the better the ending you are with him?

I hope you could understand that. It sorta didn't for me, he...

👍: 0 ⏩: 1

legioKat In reply to MeiMaikio [2012-12-30 02:29:15 +0000 UTC]

I haven't figured out the first one yet, lol. I'm working on it and I swear the minute I get it figured out, I will tell you guys. For the second, I am not experimenting with it at the moment, but do you think you could use variables with it?

I suppose you could do like a thing where it says...

"just friends" ending is what you end up with if exp < 200.
"Close friend" ending is what you end up with if exp >200<500.
"lover" ending is what you get if exp > 500.

Does that make any sense? If it doesn't I'll try to experiment with it myself and get back to you guys.

👍: 0 ⏩: 1

MeiMaikio In reply to legioKat [2012-12-30 11:20:07 +0000 UTC]

Sure~ I'll go experiment myself, maybe I can even come across it somewhere~

Thank you for the advice, oh and, good luck~! Sometimes working with ActionScript is difficult, I'm surprised you know this much already~!

G'luck dude~!

👍: 0 ⏩: 1

legioKat In reply to MeiMaikio [2013-01-01 20:35:04 +0000 UTC]

[link]

👍: 0 ⏩: 0

Kira-K320 In reply to ??? [2012-11-29 00:24:58 +0000 UTC]

Howdo you make it so that the player can insert their own name

👍: 0 ⏩: 1

legioKat In reply to Kira-K320 [2012-11-30 23:28:23 +0000 UTC]

make the input text box where the player inserts their name, and give it a var name and instance name. Then where ever you want the name to pop up, simply put a dynamic text box there with the same var and instance name as used in the input text box.

👍: 0 ⏩: 0

HikariYamiKage In reply to ??? [2012-11-26 00:14:38 +0000 UTC]

hey, to make things easier to find i had the idea to put certain scenes in my game in movie clips. most everything is working fine, but i can't get the buttons in the movie clip to recognize the variable outside the movie clip.
I'm sure there's just something i need to add to the code, since everything else i normally do works with little modification, but do you know what it would be?

👍: 0 ⏩: 0

Naftalina25 [2012-11-22 18:04:56 +0000 UTC]

I guess this doesn't work in Action Script 3.0, or it does?

👍: 0 ⏩: 1

legioKat In reply to Naftalina25 [2012-11-22 22:58:49 +0000 UTC]

im gonna guess it works. I mean, its just code... I don't have as3.0 though...

👍: 0 ⏩: 1

Naftalina25 In reply to legioKat [2012-12-02 01:17:44 +0000 UTC]

well, as3.0 doesn't accepts codes in symbols, you must put codes directly in frames, and the logic of codes changed a lot...

👍: 0 ⏩: 1

legioKat In reply to Naftalina25 [2012-12-08 15:55:09 +0000 UTC]

yikes sorry, i have no idea... I have macromedia flash

👍: 0 ⏩: 1

Naftalina25 In reply to legioKat [2012-12-08 18:55:49 +0000 UTC]

ok ok, I already figured out how to do this on AS 3.0

👍: 0 ⏩: 0

NeonWisp In reply to ??? [2012-10-13 01:10:01 +0000 UTC]

Sorry to bother you again. So Im trying to make a dialog box thing and the choices for you to pick the right and wrong answer's. So I converted the answers into buttons, but I can't seem to make them clickable. I tried learning from the pacthesis's tutorial but, I can't make it work. Could you help me please?

👍: 0 ⏩: 1

legioKat In reply to NeonWisp [2012-10-13 20:58:41 +0000 UTC]

um... You take the shape (break apart the old one) and right click, convert to symbol, button, up/over/down, select it, go to the actions,make sure this is showing:
on(release){
_root.gotoAndPlay("framewhatever");
}

If that's not it, idk what it is:/

👍: 0 ⏩: 1

NeonWisp In reply to legioKat [2012-10-14 03:21:48 +0000 UTC]

Thank you for the help. This will most likely be the last time I will be asking for help. I really appreciate your help on this. Thank you.

👍: 0 ⏩: 0

NeonWisp In reply to ??? [2012-10-12 00:41:25 +0000 UTC]

Im sorry to bother you, but I am making the buttons for hp and money and stuff. The codes are fine, its just when I click on the "work" button it show Nan for hp and money. I don't know i it's supposed to do that or if it's supposed to show the numbers and junk. So I guess thats maybe linked to my sleep button as well cuz nothing shows in the days box. Do you think you could help please?

👍: 0 ⏩: 1

legioKat In reply to NeonWisp [2012-10-12 01:09:11 +0000 UTC]

make sure you named your variables correctly. they have to be exactly the same. Usually when it says like "Nan" it means something hasn't really been defined. Also make sure you declared your variables on the first frame.

ex: (frame 1)

var hp = 50;

(sleep button)

on(release){
hp += 50;
}
^^ and here, your var name is "hp" (for the dynamic text box) and your instance name can be whatever you like, perhaps "energy"

👍: 0 ⏩: 1

NeonWisp In reply to legioKat [2012-10-12 01:24:25 +0000 UTC]

Thank you. I will try that.

👍: 0 ⏩: 0

TigersNstuff In reply to ??? [2012-09-09 04:09:46 +0000 UTC]

There's one thing I still have a problem with,
is there a way to go away from a character then come back without resetting the
whole conversation? I have several more questions if you don't mind!

👍: 0 ⏩: 1

legioKat In reply to TigersNstuff [2012-09-09 22:39:20 +0000 UTC]

Yeah, the talk/dialogue section should help. I u still need help, send meh a note!

👍: 0 ⏩: 0

Miitee [2012-09-04 11:53:09 +0000 UTC]

Whatzittooyah -> remind me of spongebob squarepants cartoon

👍: 0 ⏩: 1

legioKat In reply to Miitee [2012-09-05 22:08:14 +0000 UTC]

That's why i did it!!!!!

👍: 0 ⏩: 1

Miitee In reply to legioKat [2012-09-06 12:14:25 +0000 UTC]

>w👍: 0 ⏩: 0

legioKat In reply to ??? [2012-08-25 01:02:06 +0000 UTC]

i just realized i mixed up the words "sim" and "dating" in this thing's title....

👍: 0 ⏩: 0

NightWitch14 In reply to ??? [2012-08-21 12:09:42 +0000 UTC]

I really love this~!
This helps me alot~~~>7<
But Can I ask do you know how to put the character's name on the sentence??? 0.0
I know how to put the player's name in the beginning,but I don't know how to put it in a sentence.
Like this:

Insert your name: ____

And put the name together together like this---> "_____,I really love you.I want you all to myself,so please....Don't leave me."

Any ideas? 0.0
I'm kinda stupid.=7="

👍: 0 ⏩: 1

RaynbowzRule In reply to NightWitch14 [2012-08-22 15:20:04 +0000 UTC]

I had this same problem until I found a teeny tiny lesson on it. I'm not sure if this will work, but try creating a dynamic text box next to your sentence and giving it the var 'name'. Also, make sure your input text box has the var 'name'. Hope this helps~
And no your not kinda stupid. This is a really good question and there's nothing wrong with asking questions. Trust me, I've asked billions in regard to my sim date

👍: 0 ⏩: 1

NightWitch14 In reply to RaynbowzRule [2012-08-22 15:36:37 +0000 UTC]

I know that,but putting the name in a sentence is very difficult.>.<"
Like putting it in the middle of the sentence proparely.TTxTT

Ah~XD
That's good~X3
Cause I'm making a sim date of 3 guys.^7^
Similar to Pacthesis but different.>w<
But,There are things that I'm stuck on...The Name~TTATT

I read this,too.0.0[link]
I am sooo close,but I still don't understand.
Thanks anyway.

👍: 0 ⏩: 1

RaynbowzRule In reply to NightWitch14 [2012-08-22 15:50:49 +0000 UTC]

aish, well I tried~
I'm making 1 toooooo!!
It's so hard though, but so much fun....
I'm basing mine off of Kingdom Days

👍: 0 ⏩: 1

NightWitch14 In reply to RaynbowzRule [2012-08-22 16:02:45 +0000 UTC]

Mine is full of fantasies~I think~=7=

👍: 0 ⏩: 1

RaynbowzRule In reply to NightWitch14 [2012-08-22 16:10:14 +0000 UTC]

mine is kinda fantasy-ish, but has a reality twist to it.
you can look at the promo poster if you want, its in my signature
so whats yours about?

👍: 0 ⏩: 1

NightWitch14 In reply to RaynbowzRule [2012-08-22 16:28:40 +0000 UTC]

To pick three road with the man you love~XD
One is the Darkness,One is The human world and One is Light~XD

👍: 0 ⏩: 1

RaynbowzRule In reply to NightWitch14 [2012-08-22 16:56:34 +0000 UTC]

oh that sounds cool!

👍: 0 ⏩: 2

legioKat In reply to RaynbowzRule [2012-08-24 22:26:29 +0000 UTC]

Sorry I haven't been on, I just finished my first week of school and I've been super busy...

Ok. So back on schedule
Make an input text box and give it like an instance and a var name. This is the box where I say "enter ur name" then, every time you use whatever was typed into that box, make another text box but this time dynamic. Name the vars the same as the inputs. This should work. If not, just reply good luck!

👍: 0 ⏩: 0

NightWitch14 In reply to RaynbowzRule [2012-08-22 17:01:48 +0000 UTC]

Thanks~XD

👍: 0 ⏩: 1

RaynbowzRule In reply to NightWitch14 [2012-08-22 17:10:31 +0000 UTC]

welcome~

👍: 0 ⏩: 1

NightWitch14 In reply to RaynbowzRule [2012-08-22 17:43:08 +0000 UTC]

>7<

👍: 0 ⏩: 1

RaynbowzRule In reply to NightWitch14 [2012-08-22 17:45:06 +0000 UTC]

yush

👍: 0 ⏩: 0

SteelNightHeaven In reply to ??? [2012-08-17 02:50:05 +0000 UTC]

Thank you so much!! this was exactly what i was searching for!! <3

👍: 0 ⏩: 1

SteelNightHeaven In reply to SteelNightHeaven [2012-08-17 03:19:22 +0000 UTC]

but the button still does not work D: i dont know what to do! i mean, button exists, but it just does not work

👍: 0 ⏩: 1

legioKat In reply to SteelNightHeaven [2012-08-17 23:23:21 +0000 UTC]

What type of button are you making? What do you mean it doesn't work? Like the variables don't change, you can't click on it...?

👍: 0 ⏩: 1

SteelNightHeaven In reply to legioKat [2012-08-18 02:27:59 +0000 UTC]

im making a button type (i mean, not a movieclip or anything, its a button.) and i mean i cant click on it D:

👍: 0 ⏩: 1

legioKat In reply to SteelNightHeaven [2012-08-18 16:16:34 +0000 UTC]

what is the button supposed to do?
1)break it apart
2)select
3)convert to symbol
4)button

if this troubles you, go see pacthesis's tut

👍: 0 ⏩: 1

SteelNightHeaven In reply to legioKat [2012-08-18 21:25:39 +0000 UTC]

the problem is about the code, i've tryed with a lot of codes that are actually simmilar to this one:
on(release){

if (exp == 0) {
hp -= 10;
gotoAndPlay("talk 1");
}else if(hp<10) {
this.enabled = false;
}
}

But any of them work for me :s I dont know what to do

👍: 0 ⏩: 1

legioKat In reply to SteelNightHeaven [2012-08-19 01:50:28 +0000 UTC]

what do you mean they don't work, an error pops up? Or can you just not click it?

if you can't click on it, make sure you actually made your button right. Like making the symbol and stuff.

what are some of the similar ones like?

your script looks fine to me. Make sure that your variables work, not that it should make your button not-clickable... Im not sure about it if this doesn't help. You can try looking at other comments or other tutorials' comments and stuff if you're still confused.

👍: 0 ⏩: 1


<= Prev | | Next =>