PDA

View Full Version : background changing?



ricer
April 10th, 2006, 11:46 AM
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 :D

Joppe
April 10th, 2006, 12:40 PM
if(this.hitTest(_root.door)){
_root.background.gotoAndStop("THEFRAME");
}

like that?

ricer
April 10th, 2006, 02:05 PM
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 :)

hybrid101
April 11th, 2006, 04:51 AM
make the items movieclips and add instance names;)

bombsledder
April 11th, 2006, 09:31 AM
ricer, try using this



_root.background.swapDepths(-1000)


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

ricer
April 11th, 2006, 01:27 PM
cool it worked, :D thnx Bomb :D

and thnx joppe for the other script :)

Joppe
April 11th, 2006, 01:55 PM
Yeah, no problemo. Ask if you get into more trouble ;)

ricer
April 11th, 2006, 02:30 PM
well i got one more thing acctually :)


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 :p


can u? :D thhnx :D

Joppe
April 11th, 2006, 02:55 PM
Search the forums, I know there is alot of posts about this :)

ricer
April 11th, 2006, 03:40 PM
On what keyword should i search then? :)