Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
The basics of an RPG (role-playing game)
Author: denacioust
| Website: flashbox.proboards15.com |
Now place a button somewhere, it should be one to add on to your intelligence e.g. a study button 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");
}
}
Thats really all I need to show you without repeating myself or others.
Here are a few extra tutorials which may help you.
Saving games
Preloaders
Functions
Actionscript Basics
| » Level Intermediate |
|
|
Added: : 2004-06-04
Rating: 6.61 Votes: 26
Hits: 1566
|
| » Author |
|
Flash meister
|
| » Download |
|
Download the files used in this tutorial.
|
|
Download (0 kb)
|
|
Get conversion and unzipping tools
for PC and Mac here!
|
| » Forums |
|
More help? Search our boards for quick answers!
|
|
Please rate this tutorial, 10 is the top rating, you can also click the
comments link to read/write a review.
|
|
|