# Tile based game scrolling and enemy generation

**URL:** <https://forum.kirupa.com/t/tile-based-game-scrolling-and-enemy-generation/285056>\
**Category:** programming\
**Created:** [March 26, 2009, 3:45pm UTC](https://forum.kirupa.com/t/tile-based-game-scrolling-and-enemy-generation/285056 "2009-03-26T15:45:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![W84me](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/w84me/32/1257_2.png) [@W84me](https://forum.kirupa.com/u/W84me)\
**Post date:** [March 26, 2009, 3:45pm UTC](https://forum.kirupa.com/t/tile-based-game-scrolling-and-enemy-generation/285056/1 "2009-03-26T15:45:36Z")

</div>

Hello all,

I am making a tile based game using the [gotoAndStop technique](http://oos.moxiecode.com/tut_04/index.html).

My game is going to be a virtual forest where you can plant your tree. Right now I’ve made the map by loading and parsing an xml file and i can scroll left and right using the gotoAndStop technique.

I wonder what is the best way to load the trees

Thanks in advance.
