Just.. What for is this ?
I had previously made one a year ago like this, except I polished it up a lot more in this one.
Aimed towards beginners who want to be able to make the fundamentals of a game.
Just.. What for is this ?
ok now i just have to get something to make a game -_-
It is very good but...
Will you ever show us how to make your character attack another?
thanks
that helped!
A Few Things are Off
Hey.
The collision code is a little unstable. For example, when I move up-right or down-right, and touch the right wall, it will block me sooner than when I move right and touch the wall.
The code that handles the response for the collision should take into account the position of the wall that the player is colliding with. For example, in the Right Wall block of code, there is this:
if(this.hitTest(_root.guy)){
_root.guy._x -= 5;
}
should be something like this:
if(this.hitTest(_root.guy)){
_root.guy._x = wall.x - _root.guy.width;
}
Assuming the point of origin for the wall and the player are their upper-left corners, this should place the player directly on the left side of the right wall.
This will prevent the player from "bouncing back", which I am experiencing sometimes after I release the keys.
The collisions code has the most bugs in it. Everything else seems fine, although an AS3 tutorial would be more helpful, considering AS3 way >>> AS2. (:
_________________________
- Ziro out.