# Data Tile handling sidescroller question

**URL:** https://forum.kirupa.com/t/data-tile-handling-sidescroller-question/274143
**Category:** programming
**Created:** [October 25, 2008, 9:18pm UTC](https://forum.kirupa.com/t/data-tile-handling-sidescroller-question/274143 "2008-10-25T21:18:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![shazzmoe](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@shazzmoe](https://forum.kirupa.com/u/shazzmoe)
#### Post date: [October 25, 2008, 9:18pm UTC](https://forum.kirupa.com/t/data-tile-handling-sidescroller-question/274143/1 "2008-10-25T21:18:49Z")

</div>

Recently I’ve been experimenting with mixing a tile based method of programming with the simpler art based method. By this I mean I’m making a mapArray that contains 800x600 tiles and loads them as the player progresses forward. (it keeps one loaded ahead and one behind the player at all times)

When i was simply placing in terrain it works fine. The player was able to run back an forth through the level with out any problems. However now i want to insert things like moving platforms. Previously when i was making it entirely art based I would type something like

background\_mc.plat\_mc1.x++;

and that platform would move to the right. However now that I’m loading the sections in on run time this path no longer works. At first i figured i could do something like

background\_mc.map\_Array[0].plat\_mc1.x++;

But doing so throws me an error saying “A term is undefined and has no properties.”

Can anyone think of a work around for me? If I’ve left anything unclear or if a similar question has been asked elsewhere please let me know.

Edit: (using AS3)
