Deviant Login Shop  Join deviantART for FREE Take the Tour
×



Details

Submitted on
October 27, 2007
Image Size
74.0 KB
Resolution
600×600
Thumb

Stats

Views
13,908 (1 today)
Favourites
131 (who?)
Comments
90
Downloads
648
×
[Edit] This tutorial is outdated! It can still be used for learning some basics for Flash but it is advised you find newer tutorials! I have a new video tutorial series on youtube ( [link] ) for making a Flash game using AS3. [/Edit]

Due to the massive success of the last RPG tut I made. I made a new, better, more up to date version.

Well what are you waiting for? Get going! Start building your own RPG.
Add a Comment:
 
Flagged as Spam
:iconhypersonic53:
Hypersonic53 Featured By Owner Sep 12, 2011  Hobbyist Traditional Artist
Finally, a VEERY helpful tutorial. Thanks!
Reply
:iconrisa884:
Risa884 Featured By Owner May 24, 2011
helpful
Reply
:iconhikara-chan:
Hikara-chan Featured By Owner May 2, 2011  Hobbyist General Artist
I suck balls
Reply
:icondumpaling:
dumpaling Featured By Owner Feb 18, 2011
This was so helpful!
Reply
:iconkawaiisairen:
KawaiiSairen Featured By Owner Jan 5, 2011
do you know how to make a button go to a random frame?
Reply
:iconcomputer-turret:
Computer-Turret Featured By Owner Jan 5, 2011  Student Artist
Simply tell it to generate a random number in the range you want using random() [AS1/AS2] or Math.random() [AS1/AS2/AS3].
For example:

gotoAndStop(int(Math.random()*5));
Would generate a random number between 0 and 4 (not 5) and go to and stop on that frame. It is enclosed in int() to type cast it as an integer.

Math.random() generates a number in the range[0,1) (ie: 0.55674353 or whatever) then it is multiplied by 5 (change to whatever upper limit you want+1) to give 2.78371765, then the int() removes all the decimals resulting in just 2. So it then goes to frame 2!

More examples:

gotoAndStop(int(Math.random()*11)+5);
It will go to a random frame between 5 and 15. (Generates a number up to 10 and adds 5. If it generates 0 then it goes to frame 5 (lower limit), if it generates 10 then it goes to frame 15 (upper limit).
Reply
:iconkawaiisairen:
KawaiiSairen Featured By Owner Jan 5, 2011
okay thanks
Reply
:iconkaboom-wabit:
kaboom-wabit Featured By Owner Nov 29, 2010  Hobbyist Traditional Artist
um.. i am making this game, all i dont know is the save and load part >.< can you um.. tell me the codes
i dont know, it looks @.@ <-- mixed up or something XD
Reply
:iconkawaiisairen:
KawaiiSairen Featured By Owner Nov 27, 2010
hi, i was wondering, if you make a day feature, so that you sleep and it becomes day 2 and then next it becomes day three etc.
do you know how you make things happen on certain days?
i really need help
Reply
Add a Comment: