# Need help with items!

**URL:** <https://forum.kirupa.com/t/need-help-with-items/78832>\
**Category:** Uncategorized\
**Created:** [February 8, 2005, 3:14pm UTC](https://forum.kirupa.com/t/need-help-with-items/78832 "2005-02-08T15:14:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![theloger](https://avatars.discourse-cdn.com/v4/letter/t/d9b06d/32.png) [@theloger](https://forum.kirupa.com/u/theloger)\
**Post date:** [February 8, 2005, 3:14pm UTC](https://forum.kirupa.com/t/need-help-with-items/78832/1 "2005-02-08T15:14:03Z")

</div>

Im trying to make a game but i need some help with items. I cant get two items show up on the map,only one appears. If someone can help me fixing my code ill aprecciate:

function placeItems (map) {  
\_root.attachMovie(“empty”, “items”, this.getNextHighestDepth());  
var mapWdth = map[0].length;  
var mapHght = map.length;  
for (var i = 0; i \< mapHght; i++) {  
for (var j = 0; j \< mapWdth; j++) {  
switch (map\*[j]){

```
case 1:                                                           
_root.items.attachMovie("Guy","guy_mc", d++);
_root.items.guy_mc._x = (_root.tileWdth * j);
_root.items.guy_mc._y = (_root.tileHght * i);

case 2:                                                           
_root.items.attachMovie("Cash","cash_mc", d++);
_root.items.cash_mc._x = (_root.tileWdth * j);
_root.items.cash_mc._y = (_root.tileHght * i);

```

}  
}  
}  
}  
placeItems(itemMap1);
