Shop Mobile More Submit  Join Login
×




Details

Submitted on
August 2, 2012
Image Size
1.0 MB
Resolution
550×400
Link
Thumb
Embed

Stats

Views
18,052 (13 today)
Favourites
541 (who?)
Comments
296
Downloads
315
×
I felt like making a tutorial... And this was the only thing I was semi-alright at. :P Also I had one heck (awful) of a time trying to learn all of this stuff, and I would have loved one of these. So maybe someone might find it useful. I hope you guys do. :) If there are any questions feel free to ask! (some of it can be insanely hard to understand)

Also, before you comment, take a look through the comments already there. You might have a question that is similar to another and is already answered.
________
Check out my other tutorials on this stuff down below!
:new: Here is a tutorial on making cheat codes and passwords!
legiokat.deviantart.com/art/Pa…

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

:new: Here is my tutorial involving Inventory, Gift-giving, and a little bit on shops!
legiokat.deviantart.com/art/In…
Add a Comment:
 
:iconguest-1001:
Guest-1001 Featured By Owner Dec 6, 2014
This is so helpful! Thank you! I'm just learning Flash and I'm using ActionScript 3 instead of 2 but I think I could adapt a lot of stuff from this to use. Thanks. :)
Reply
:iconkolkolcat:
KolKolCat Featured By Owner Nov 25, 2014  Hobbyist Traditional Artist
Would it be possible to show stats, hp etc. in a bar format rather than just in numbers? Thank you very much for the tutorial though. It's very helpful!
Reply
:iconlazu1e:
Lazu1e Featured By Owner Nov 5, 2014
There is one and just one problem... You and Pathesis make. In her simdates you can stack HP/Energy/Time like crazy if you sleep all day and erry day. Thats not immersive since you can do everything in one day if you are good at min-maxing. Real human beings don't stack that much energy sleeping all-day actually they waste their lives this way.

A max HP cap value is needed... most people cap the max HP to 100 in SimDates.  If you want to be simple cap it at 10 and reduce your other variables accordingly, the extra digit is not that needed.

Anyway thanks a lot for the tutorial it helps a bunch.
Reply
:iconlegiokat:
legioKat Featured By Owner Nov 23, 2014  Hobbyist General Artist
If you are looking for a fairly simple way to kind of do this, instead of putting +50 hp on your sleep button, you can make it say hp = 50.

By doing this, your sleep or HP will be 50 no matter how many times you hit the sleep button. Of course, your button will still have the +1 day part, so even if you hit the sleep button 12 times, your HP will be reset to 50 each time, not compound itself, and you will be on day 12. 

You could also do a"cap" function, by making the button have an "if" statement, saying if the HP is greater than or equal to 50, the button will inactivate. This is similar to the previous solution, but instead of clicking the button 12 times, and ending up on the 12th day with 50 max daily hp, you'd be on day 1 because the button will be inactivated once you have max hp, not allowing you do move on to the next day if you have all your hp. 
Again, this would still have the +1 day function, although it would only work if you hit the sleep button with less than 50 (or whatever your max hp is) hp. 

My honest opinion, is do the first way. It's much simpler. Any questions send me a note, and I'm glad you found the tutorial helpful
Reply
:iconjpgsara:
jpgsara Featured By Owner Edited Sep 12, 2014  Hobbyist Digital Artist
hi! i was wondering,

where do you put the code so that you dont go into negative stats for? which frame/button does it go into the actionscript? i dont know where i should put it. i tried to put it in the actionscript of every button but it doesnt work ;-; please please help
Reply
:iconlegiokat:
legioKat Featured By Owner Sep 19, 2014  Hobbyist General Artist
your sleep buttpn
Reply
:iconjpgsara:
jpgsara Featured By Owner Sep 12, 2014  Hobbyist Digital Artist
oh, also, when i clicked on the sleep button it only gives me 5 hp when i put 50 hp in the sleep button actionscript

here is what i put in the sleep button actionscript

on(release){
day += 1;
hp += 50;
}

also the day resets back to one after i press the sleep button 10 times :///? please help me anyone, please please please
Reply
:iconjijou01:
jijou01 Featured By Owner Jul 22, 2014
How can i create a love meter that progress when the player hit the right answer ?? 
and thanks
Reply
:iconhoney-apple:
honey-apple Featured By Owner Jun 17, 2014  Hobbyist Digital Artist
I'm going to make one soon, probably. I just released a detective game but omg coding frames and stuff are so tiring i iasjdnsiadn but thanks! This tutorial was super helpful.
Reply
:iconartelleart:
ArtelleArt Featured By Owner May 6, 2014
Thank you very much! I can't wait to start my own project. :D
Reply
Add a Comment: