Deviant Login Shop  Join deviantART for FREE Take the Tour


Submitted on
October 27, 2007
Image Size
74.0 KB


13,680 (2 today)
130 (who?)
[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:
Hypersonic53 Sep 12, 2011  Hobbyist General Artist
Finally, a VEERY helpful tutorial. Thanks!
Hikara-chan May 2, 2011  Hobbyist General Artist
I suck balls
This was so helpful!
do you know how to make a button go to a random frame?
Computer-Turret 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:

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:

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).
kaboom-wabit 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
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
Computer-Turret Nov 27, 2010  Student Artist
Well you could have a variable keep track of what day it is and increase it when the character sleeps. If you wanted certain events to happen on certain days just use an if statement to check if the day is correct if(day==2){ //have the event occur } or whatever.
Add a Comment: