Background changing?

heya if tried to make a little map but i only got one background,

how is it possible to get a kind of “door” if u hitTest it the background gets different and other monsters and other items, but your inventory and stuff is still the same?

thnx :smiley:

if(this.hitTest(_root.door)){
_root.background.gotoAndStop("THEFRAME");
}

like that?

aaahhh i get it u need to change the background to a MovieClip?

but i allready tried that kind of stuff but then i cant pick up the items =(

thnx anyway :slight_smile:

make the items movieclips and add instance names;)

ricer, try using this


_root.background.swapDepths(-1000)

it should now be in the back of the game :slight_smile:

cool it worked, :smiley: thnx Bomb :smiley:

and thnx joppe for the other script :slight_smile:

Yeah, no problemo. Ask if you get into more trouble :wink:

well i got one more thing acctually :slight_smile:

can u make an example for me from a guy that shoots an arrow,
but if he moves the arrow must stay at his own target and not moving along with the char :stuck_out_tongue:

can u? :smiley: thhnx :smiley:

Search the forums, I know there is alot of posts about this :slight_smile:

On what keyword should i search then? :slight_smile: