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,680 (2 today)
Favourites
130 (who?)
Comments
89
Downloads
641
×
[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:
 
:iconhypersonic53:
Hypersonic53 Sep 12, 2011  Hobbyist General Artist
Finally, a VEERY helpful tutorial. Thanks!
Reply
:iconhikara-chan:
Hikara-chan May 2, 2011  Hobbyist General Artist
I suck balls
Reply
:icondumpaling:
This was so helpful!
Reply
:iconkawaiisairen:
do you know how to make a button go to a random frame?
Reply
:iconcomputer-turret:
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:

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
:iconkaboom-wabit:
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
Reply
:iconkawaiisairen:
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
:iconcomputer-turret:
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.
Reply
Add a Comment: