Tile map engine(Made by MrcredsAlex)
User |
Message |
||||
Forum Home : Flash : Tile map engine(Made by MrcredsAlex)Please register to post replies, or login above. |
|||||
MrcredsAlexPosts: 7GumPoints: 554 |
Hey this is the tile map engine I made. (originally posted here)
You can make a map doing this:
For example, we can put:
This will create tile 0 on the Y axis 31 and on undefined X axis, and it will create too tile 0 on the X axis 50 and on the Y axis 911 The tile number must have 1 digit(up to 9)(or on the new version 2 up to anything you want) The Y axis must have 3 digits(up to 999)(or on the new version up to anything you want) The X axis can have unlimited digits(Up to infinity) To create the tiles: Make a movie clip and make it’s linkage name tilenumber. For example, tile0. An example of everything: "+map[i].slice(0, maxTile), "tile"+i, getNextHighestDepth()); tileHandle.y = map[i].slice(maxTile, maxY); tileHandle.x = map[i].slice(maxY, map[i].length); i++; } }; var map1:Array = ["031", "091150"]; buildMap(map1,3,1); Happy tile map creating! |
||||
|
|||||
SkuldPosts: 851GumPoints: 5,402 |
X-| I think proph3t needs to work on making a code tag for posts. |
||||
|
|||||
curlyfriesPosts: 771GumPoints: 2,143 |
It must have taken you sooo long to do that.....and people dont even understand it |
||||
|
|||||
NArc0t1cPosts: 10GumPoints: 212 |
Could be usefull at times.. |
||||
|
|||||
tank2tankPosts: 132GumPoints: 1,121 |
My brain just melted. I hate code. |
||||
|
|||||
proph3tPosts: 234GumPoints: 1,845 |
Hmm somehow missed this thread, will have to work on the code tags. |
||||
|
|||||
SkuldPosts: 851GumPoints: 5,402 |
Looks like they are working. =) |
||||
|
|||||
proph3tPosts: 234GumPoints: 1,845 |
Yea we put some time into that :) |
||||
|
|||||
SkuldPosts: 851GumPoints: 5,402 |
Can you add what the code tag is to the little box at the bottom that shows the other codes? |
||||
|
|||||


