# Some help making a game engine

**URL:** <https://forum.kirupa.com/t/some-help-making-a-game-engine/104054>\
**Category:** Uncategorized\
**Created:** [March 11, 2004, 11:05pm UTC](https://forum.kirupa.com/t/some-help-making-a-game-engine/104054 "2004-03-11T23:05:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hi\_Nu](https://avatars.discourse-cdn.com/v4/letter/h/91b2a8/32.png) [@Hi\_Nu](https://forum.kirupa.com/u/Hi_Nu)\
**Post date:** [March 11, 2004, 11:05pm UTC](https://forum.kirupa.com/t/some-help-making-a-game-engine/104054/1 "2004-03-11T23:05:22Z")

</div>

Hello All, I am making a game with the famed porpous2 (Hence all the site stuff he has put on) so, I was wondering how I can make a tile based 2D that can have hills, plains, and other turrane. I have a VERY bad game engine and was wondering if you can spuce it up and make it a powerfull tool in the tool box  
[AS]function map(depth, xpos, ypos, spacing) {  
for (v=1; v\<500; v++) {  
ypos++;  
\_global.tile = this.attachMovie(“tile”, “tile”+depth, depth++);  
tile.\_x = spacing\*(xpos);  
tile.\_y = spacing\*(ypos);  
if(tile.\_y\>Stage.height){  
break;  
}  
}if(tile.\_x\>stage.width){  
\_global.endMap = true;  
}  
\_global.dep = depth

}[/AS] (yes this is VERY bad, but it is a start)

P.S I love this smiliey 🔗
