Shad0wdrag0n
Member
|
quote:
ORIGINAL: petermaxo I think you may be using '=' insteat od '==' somewhere. Also, though I'm not sure why you keep using _root., you need to add _global. to the variable name when you first define it to keep it constant (unless changed: then the new value is kept constant unless changed: then the new value is kept constant...) throughout all scenes, frames, etc. at least, I think that may fix your problem. I tried adding an extra = to the hitTest part but it didn't work. I tried adding _global. to the variable but it didn't work. The code sets the alpha for the object based on the variable just fine (with or without the _global. part). The problem is that the hitTest isn't changing the variable when the player comes into contact with the object. The reason I add _root. is because it doesn't work without it. EragonZZZZ's code for moving to different frames when the player contacts the edge of the stage (on the previous page of this thread) only worked when I added _root. a couple times. I tried removing all the _root. from your code and it still wont work.
< Message edited by Shad0wdrag0n -- 3/15/2007 14:35:10 >
|