Monster Racer Rush
Select between 5 monster racers, upgrade your monster skill and win the competition!
4.23 / 5.00 3,881 ViewsBuild and Base
Build most powerful forces, unleash hordes of monster and control your soldiers!
3.93 / 5.00 4,634 ViewsNote: 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!
reply saying what you think abiut this tutorial
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
You're pathetic. You just copied and pasted it, word for word, from Flashkit, without giving the author credit:
I'll link to useful stuff:
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...
is it possible to create a game that is an rpg like Halo?
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
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!!!!
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 :)
Tom is a bit busy at the moment with the Perfect Kirby game as well...
I really don't care if u stole the tutorial but could u imagehost an example?
the original tutorial has been posted on this thread. Just look in it, it's more detailed.
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.
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.
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.
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
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>
this is pathetically obvious you stole it from flashkit
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?
...