A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Problem Movement scenary

  1. #1
    Junior Member
    Join Date
    Jul 2011
    Posts
    14

    Problem Movement scenary

    I want to create when the character moves, the scenary moves too, Play the flash on this website for try to understand me, soz for mybad english ^^

    http://megaswf.com/serve/1166226


    For now, the character leave scenary when run a lot.

    PD: Use D to move Right, you can use 1 for attack.


    Actionscript Code:
    if(_currentframe == 3 && !_root.leftblock.hitTest(this._x+20, this._y, true)){
            this._x += speed;
            _root._x -= speed;
        }
        if(_currentframe == 4 && !_root.rightblock.hitTest(this._x-20, this._y, true)){
            this._x += speed;
            _root._x -= speed;
        }

  2. #2
    Junior Member
    Join Date
    Jul 2011
    Posts
    14
    I fixed it, Can any mod close this?


    Thanks you ^^

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center