-
[F8] Gravity/Ground and Walls
New to flash and I'm having some trouble making gravity and having things not go through barriers and walls. I'm using something like " if (this.hitTest(getBounds(_root).xMax, _y, true)) {
_x -= hitback; hitground = true;
}" and its not so good. Sometimes you can fall through the ground and sometimes you bounce. Could anyone give me a script on Walls and gravity and maybe explain it?
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
|