Be a Supporter!

As : Creating A Rpg Game

  • 840 Views
  • 22 Replies
New Topic Respond to this Topic
lan00
lan00
  • Member since: May. 20, 2005
  • Offline.
Forum Stats
Member
Level 07
Blank Slate
As : Creating A Rpg Game 2005-07-24 06:42:07 Reply

Note: This is based on the Stick RPG game and i dont know if the actions will work

Now it's time to open up Flash. Open up a new flash document. To start off draw out your character, from the top animate it walking in an upward direction, the other directions will be handled in the action script of the game. Label the character “man.”
With your character done it would be best just to draw the background now and keep all the drawing and animating together. Draw your map; ignore logic when drawing it by showing the front and top of every building so you know what’s going on in each building. Your map should be several times the size of the visible screen in your game so that the map can scroll, the map only will move and not the character. You’ll need to add in some extra frames to show the inside of the buildings.

Now what you need to do is an inventory for your game. At the bottom of the screen draw any number of boxes i.e. these boxes will show up your items when you find them. Give these boxes the instances slot1, slot2 etc. With these boxes you’ll want to put in around five textboxes, one for health, occupation, days into the game, name, strength, charm and intelligence. Give each of the textboxes the variable (not instance name!) of what they are (just the one word.)

Now to start off your game insert a new scene (Insert --> Scene) above the existing scene(s) name this scene “Setup”. Name the already existing scene “game” This scene will be used to set-up all the variables. Insert an input text-box give it the variable “name.” The user then can input their own name into the textbox. Make sure you click the box labelled “show border around text” and Max. characters to seven, or whatever you want. Insert another input textbox for Days into the game and do the same for that but set the maximum characters to two and the allowed characters to just be numbers. Insert three more dynamic textboxes for Strength, Charm and Intelligence. Now for some action script insert this into the first frame:

function randomise () {
_root.strength=random(10)
_root.charm=random(10)
_root.intelligence=random(10)
}

By making it as a function it can be used again with a randomising button. Draw a “roll again” button. Give it actions of:

on (release) { randomise(); }

That will randomise the values by the click of that button. Place another button on the stage with the writing “Go” or “Play” or something to that extent in it. Give the button actions

on (release) {
gotoAndStop("Game", 1);
}

And for the actual game…
Go to your “Game” scene and place in your character and the background. Select align (ctrl + k ) and centre your character on stage. Give the background the following actions.

onClipEvent (load) {
movespeed = 2;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
_x-= movespeed;
}
if (Key.isDown(Key.LEFT)) {
_x+= movespeed;
}
if (Key.isDown(Key.UP)) {
_y+= movespeed;
}
if (Key.isDown(Key.DOWN)) {
_y-= movespeed;
}
}

And give your character these actions

onClipEvent (load){movespeed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
play();
_rotation = 90;
_x+= movespeed;
}
if (Key.isDown(Key.LEFT)) {
play();
_rotation = 270;
_x-= movespeed;
}
if (Key.isDown(Key.UP)) {
play();
_rotation = 0;
_y-= movespeed;
}
if (Key.isDown(Key.DOWN)) {
play();
_rotation = 180;
_y+= movespeed;
}
if (Key.isDown(Key.RIGHT) && Key.isDown(Key.UP)) {
_rotation = 45;
}
if (Key.isDown(Key.LEFT) && Key.isDown(Key.UP)) {
_rotation = 315;
}
if (Key.isDown(Key.RIGHT) && Key.isDown(Key.DOWN)) {
_rotation = 135;
}
if (Key.isDown(Key.LEFT) && Key.isDown(Key.DOWN)) {
_rotation = 225;
}
}

Now place these actions in the frame.

currentslotnum = 1;
stop ();
function addToslot (item) {
if (!item.found) {
item._x = eval ("itemSlot" + currentslotnum)._x;
item._y = eval ("itemSlot" + currentslotnum)._y;
item.found = true;
currentslotnum++;
}
}

And give the items that can be found these actions

onClipEvent (enterFrame) {
if (_root.character.hitTest (this)) {
_root.addToslot (this);
}
}

Now place a button somewhere, it should be one to add on to your intelligence e.g. a study in a school. Place these actions in the frame that button is placed in:

if (moneyneeded>=moneyrequired) {
money=1
}

And give the button these actions

on (release) {
strength+=(10*money)
}

And that can be used for all the different things required for the game e.g. Buying beer and stuff.

Moving into buildings. Inside the map place a square outside the door with an instance of "step"

onClipEvent (enterFrame) {
if (_parent.man.hitTest (this)) {
_parent.gotoAndStop("insidebuildingframe")
;

}
}

and there you have it hope it alll works for ya!

lan00
lan00
  • Member since: May. 20, 2005
  • Offline.
Forum Stats
Member
Level 07
Blank Slate
Response to As : Creating A Rpg Game 2005-07-24 06:48:25 Reply

reply saying what you think abiut this tutorial

expired4postlimit
expired4postlimit
  • Member since: Aug. 28, 2004
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to As : Creating A Rpg Game 2005-07-24 06:50:52 Reply

not bad not bad at all


BBS Signature
lan00
lan00
  • Member since: May. 20, 2005
  • Offline.
Forum Stats
Member
Level 07
Blank Slate
Response to As : Creating A Rpg Game 2005-07-24 06:52:34 Reply

thanks

expired4postlimit
expired4postlimit
  • Member since: Aug. 28, 2004
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to As : Creating A Rpg Game 2005-07-24 07:23:14 Reply

At 7/24/05 06:52 AM, lan00 wrote: thanks

It could be better, Explain the Char's movement better, instead of the bg. unless it's just the bg movieing..giving the false illusion that the char is...but you said something about a animation of the char..a tween?
give some screenshots of each step...some ppl are visual learners


BBS Signature
Begoner
Begoner
  • Member since: Oct. 10, 2004
  • Offline.
Forum Stats
Member
Level 10
Blank Slate
Response to As : Creating A Rpg Game 2005-07-24 09:26:32 Reply

You're pathetic. You just copied and pasted it, word for word, from Flashkit, without giving the author credit:

http://www.flashkit...aciou-1036/more3.php

Inglor
Inglor
  • Member since: Jan. 26, 2003
  • Offline.
Forum Stats
Member
Level 17
Blank Slate
Response to As : Creating A Rpg Game 2005-07-24 09:28:36 Reply

I'll link to useful stuff:

Inventory 1
Basic Movement
Symbols

Inglor
Inglor
  • Member since: Jan. 26, 2003
  • Offline.
Forum Stats
Member
Level 17
Blank Slate
Response to As : Creating A Rpg Game 2005-07-24 09:29:53 Reply

At 7/24/05 09:26 AM, Begoner wrote: You're pathetic. You just copied and pasted it, word for word, from Flashkit, without giving the author credit:

http://www.flashkit...aciou-1036/more3.php

holy shit, the man is right...

Negron-Films
Negron-Films
  • Member since: Dec. 12, 2003
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to As : Creating A Rpg Game 2005-07-24 10:51:39 Reply

is it possible to create a game that is an rpg like Halo?


BBS Signature
GrimJuju
GrimJuju
  • Member since: Jul. 21, 2003
  • Offline.
Forum Stats
Member
Level 07
Blank Slate
Response to As : Creating A Rpg Game 2005-07-24 11:00:04 Reply

At 7/24/05 10:51 AM, Dark_Neo wrote: is it possible to create a game that is an rpg like Halo?

.....halos a fps you dumb shit

Shomer
Shomer
  • Member since: Jun. 23, 2005
  • Offline.
Forum Stats
Member
Level 13
Blank Slate
Response to As : Creating A Rpg Game 2005-07-25 10:17:22 Reply

At 7/24/05 09:26 AM, Begoner wrote: You're pathetic. You just copied and pasted it, word for word, from Flashkit, without giving the author credit:

http://www.flashkit...aciou-1036/more3.php

hA!!! i knew ive seen this before!!!!

liam
liam
  • Member since: Dec. 11, 2004
  • Offline.
Forum Stats
Member
Level 22
Blank Slate
Response to As : Creating A Rpg Game 2005-07-25 10:23:06 Reply

At 7/25/05 10:17 AM, Shomer wrote: hA!!! i knew ive seen this before!!!!

Same here. Well, I guess Denvish isn't adding this to his list and too right.

Someone should make a proper RPG game tutorial, I'd say Tom (SFBs) should do it since his latest game, the Zelda RPG, is absolutly fantastic (by the way, Decline 3 is in the portal now) but he's away until 9th of August.

If anyone else wants to make one, go ahead, but don't copy and paste.


Sup, bitches :)

BBS Signature
KarmicCloud
KarmicCloud
  • Member since: May. 30, 2004
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to As : Creating A Rpg Game 2005-07-25 11:52:24 Reply

Tom is a bit busy at the moment with the Perfect Kirby game as well...

Shomer
Shomer
  • Member since: Jun. 23, 2005
  • Offline.
Forum Stats
Member
Level 13
Blank Slate
Response to As : Creating A Rpg Game 2005-07-25 12:41:12 Reply

I really don't care if u stole the tutorial but could u imagehost an example?

Inglor
Inglor
  • Member since: Jan. 26, 2003
  • Offline.
Forum Stats
Member
Level 17
Blank Slate
Response to As : Creating A Rpg Game 2005-07-25 12:42:13 Reply

the original tutorial has been posted on this thread. Just look in it, it's more detailed.

Devenger
Devenger
  • Member since: Dec. 24, 2004
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to As : Creating A Rpg Game 2005-07-25 13:23:14 Reply

I could make a tutorial on a FF-style battle engine (there isn't any good ones I've found) but to be honest with you, I can't be bothered (and all the cool, advanced stuff would be far too hard to explain).

Anyway, the battle engine isn't the focus of an RPG, is it?


I'm back! on a temporary basis. No-one can remember who I am! but I don't really mind.

ZombieLincoln
ZombieLincoln
  • Member since: Nov. 19, 2004
  • Offline.
Forum Stats
Member
Level 25
Blank Slate
Response to As : Creating A Rpg Game 2005-07-25 13:43:05 Reply

At 7/25/05 01:23 PM, TheDeviousDuck wrote:
Anyway, the battle engine isn't the focus of an RPG, is it?

It can be. FF Tactics style.

23450
23450
  • Member since: May. 28, 2003
  • Offline.
Forum Stats
Supporter
Level 27
Blank Slate
Response to As : Creating A Rpg Game 2005-07-25 13:43:09 Reply

At 7/25/05 01:23 PM, TheDeviousDuck wrote:
Anyway, the battle engine isn't the focus of an RPG, is it?

I'd say it is. Movement is easy. I am working on an RPG battle engine myself, and it is no easy task so far. And i would appreciate a nice battle engine more then a simple movement engine.


BBS Signature
Shomer
Shomer
  • Member since: Jun. 23, 2005
  • Offline.
Forum Stats
Member
Level 13
Blank Slate
Response to As : Creating A Rpg Game 2005-07-25 13:43:35 Reply

At 7/25/05 01:23 PM, TheDeviousDuck wrote: I could make a tutorial on a FF-style battle engine (there isn't any good ones I've found) but to be honest with you, I can't be bothered (and all the cool, advanced stuff would be far too hard to explain).

Anyway, the battle engine isn't the focus of an RPG, is it?

there already is a VERY good one on NG by KoRnmangames.
click

Toast
Toast
  • Member since: Apr. 2, 2005
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to As : Creating A Rpg Game 2005-07-25 15:17:18 Reply

Cool,then you basicly stole everything except of some details,right?
I appreciate your effort for pressing control + c and control + p!
Everybody knows it's extremely tiring!

Actually,you could have at least explained the code you pasted,without explanations,people can't learn. -__-

I might post a RPG tutorial when I'm finished with my RPG,I'll add cool things like changing inventory, fleeing, finding treasures & getting items from killed monsters...

<sarcasm>
Nice job pressing on the copy & paste button. Good luck with it, hope you'll use it some more :D </sarcasm>


BBS Signature
GrimJuju
GrimJuju
  • Member since: Jul. 21, 2003
  • Offline.
Forum Stats
Member
Level 07
Blank Slate
Response to As : Creating A Rpg Game 2005-07-25 15:32:57 Reply

this is pathetically obvious you stole it from flashkit

KaynSlamdyke
KaynSlamdyke
  • Member since: Jun. 25, 2004
  • Offline.
Forum Stats
Member
Level 16
Melancholy
Response to As : Creating A Rpg Game 2005-07-25 16:03:54 Reply

Oh okay. So the guy stole a tutorial. So let's make this thread into something worthwhile and discuss AS theory on roleplaying games.

I'm not struggling working out how to make a control mechanism for an RPG's field screen, or even saving it (gotta love Flash Cookies). What I am struggling with is working out an abstract battle system that's fair and scalable per challenges (ala Final Fantasy, Wild ARMS or any other RPG with the battle scene transition). Any examples available on making one of these that I can learn from?


...

BBS Signature
mercygames
mercygames
  • Member since: Nov. 23, 2003
  • Offline.
Forum Stats
Member
Level 07
Blank Slate
Response to As : Creating A Rpg Game 2005-09-10 14:32:56 Reply

i have made some tutorials to help people make rpg's as well as battle systems.
click here for the RPG Basics Tutorial, or click here for the RPG Battle System Tut.

hope that they help some of you.