I am wanting to create a tile based platform game, i have bin using tonypa's tuturoials as guidlines but i havnt been able to fine anything to help in tweeking sertain things and i am new to flash and arnt experianced enough i do it my self..
how would i create a new doors prototype so when the hero moves over the door instead of going to new map and x and y cordinates go to and stop on a difernet frame here is the following code for the orignal door statment
and the actualy door placmentCode:game.Doors = function (newmap, newcharx, newchary) { this.newmap = newmap;this.newcharx = newcharx;this.newchary = newchary;}; game.Doors.prototype.walkable = true; game.Doors.prototype.frame = 3; game.Doors.prototype.door = true;
this is also some code for the hero to check if there is a door dose this need to be changes aswell??Code:game.Tile2 = function () { }; game.Tile2.prototype = new game.Doors(newmap, newcharx, newchary);
Code:if (game["t_"+ob.ytile+"_"+ob.xtile].door and ob == _root.char) {




Reply With Quote