Advertisement
Guest User

Untitled

a guest
Jul 11th, 2011
720
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. if (RegisterRed.hitTestPoint(mouseX,mouseY,true)) {
  2. addChild(RegisterGreen);
  3. RegisterGreen.x= RegisterRed.x
  4. RegisterGreen.y= RegisterRed.y - 1
  5. RegGreen = 1
  6. }
  7. if (RegisterRed.hitTestPoint(mouseX,mouseY,false)) {
  8. if (RegGreen == 1) {
  9. removeChild(RegisterGreen);
  10. RegGreen = 0
  11. }
  12. }
  13.  
  14.  
  15.  
  16. ^Just a snippit. Everything else works. The issue is some kinda loop thingy that's making this script do nothing. I'm sure you'll notice it.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement