11 Replies Latest reply on Apr 7, 2007 5:50 PM by kglad

    HELP: PORTALS

    Angelcape
      i'm making a 2d side-scroller and i need some help.

      I've tried to get to the next map (using play();) by these means:


      onClipEvent (enterFrame) {
      thingthing = 0
      if (this.hitTest(_root.char)) {
      thingthing==1
      }
      if (thingthing==1){
      if(Key.isDown(Key.UP)) {
      play();
      }
      }
      }

      to the movie clip portal

      and

      onClipEvent (enterFrame) {
      if (this.hitTest(_root.char)) {
      if(Key.isDown(Key.UP)) {
      play();
      }
      }
      }

      and

      onClipEvent (enterFrame) {
      if (this.hitTest(portal)) {
      if(Key.isDown(Key.UP)) {
      play();
      }
      }



      and etc. to the character but still, i can't get it to move onto the next map. does anyone know how?

      What i want:

      when you touch the portal, if you press up, it executes the script:

      play();

      thank you, and please respond quickly![/code]