2 Replies - 1170 Views - Last Post: 01 June 2009 - 05:56 AM

#1 WMIIII923  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 1
  • View blog
  • Posts: 101
  • Joined: 10-February 06

Movable Object

Posted 19 February 2006 - 01:10 PM

Description: copy and paste to object's actionscripta script that allows an object to move with the arrow keys
onClipEvent (enterFrame) {
     if (Key.isDown(Key.DOWN)) {
          gotoAndStop(1);
     }
     
     if (Key.isDown(Key.RIGHT)) {
          _x += 2;
               }
     if (Key.isDown(Key.LEFT)) {
          _x -= 2;
     }
     if (Key.isDown(Key.UP)) {
          _y -= 2;
     }
     if (Key.isDown(Key.DOWN)) {
          _y += 2;
     }
     }


Is This A Good Question/Topic? 0
  • +

Replies To: Movable Object

#2 pstop1  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 0
  • Joined: 23-November 08

Re: Movable Object

Posted 23 November 2008 - 03:44 PM

what thing do i copy and paste it to what typeing progam
Was This Post Helpful? 0
  • +
  • -

#3 adam.dod  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 0
  • Joined: 30-May 09

Re: Movable Object

Posted 01 June 2009 - 05:56 AM

THIS SUCK MAN
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1