Hey. I'm trying to scroll a whole array of randomly placed items with the rest of the level. But it wont let me do that!
this is my function:
Code:
public function movelevel()
{
if( _player.x < 50 && move_left == true )
{
_player.x +=10;
}
if( _player.x > 600 && move_right == true )
{
lava.x -=10;
bg.x -= 5;
_player.x -=10;
_ground.x -=10;
level.x -=10;
_enemies.x -= 10;
_items.x -= 10;
_platform.x -= 10;
}
}
And here is my error, which goes on forever:
Code:
TypeError: Error #1006: value is not a function.
at main/checkHitTest()
at main/update()
There is some nasty little loop, but i am a AS n00b so I dunno how to fix it. Is there a good way to move a whole array simple?