Search tutorials
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: 7 Votes: 25 |
| » Author |
| Flash meister |
| » Download |
| Download the files used in this tutorial. |
| Download (0 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!