-
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; }
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|