PDA

View Full Version : Trouble with Kirupa's RPG tutorial



Xelectroid
January 24th, 2008, 08:48 AM
I was cruising through the tutorial, but when I get to this: http://www.kirupa.com/developer/actionscript/rpgprogramming6.htm
page.

Specifically, the item generation. It just doesn't work.

I have changed the instance names to the correct things, but my hero still doesn't appear.

I suspect it may have to do with the "items" object that comes up.

_root.attachMovie("blank", "items", this.getNextHighestDepth());

_root.items.attachMovie("Hero", "heroguy", d++);
_root.items.heroguy._x = (_root.tileWdth*j);
_root.items.heroguy._y = (_root.tileHght*i);
}

Never in the tutorial did it say to create an "item" object.

Help?

Marz
January 24th, 2008, 09:24 AM
Instead of an attach movie you can just create a blank movieclip and name it items instead. That might make it easier for ya.