Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
RPG game part 1
Author: Leo HEK
In frame 2 put the action:
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++;
}
}
Now make an MC called slot. Then, on the MC called slot put in the action:
onClipEvent (enterFrame) {
if (_root.character.hitTest (this)) {
_root.addToslot (this);
}
}
| » Level Advanced |
|
|
Added: : 2004-08-30
Rating: 5.16 Votes: 20
Hits: 735
|
| » Author |
|
Part 1 of how to make an rpg game.
|
| » 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.
|
|
|