00:00
00:00
Newgrounds Background Image Theme

Remfy just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Flash Game Tutorial 101 2

Share Collapse

Author Comments

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.

Log in / sign up to vote & review!

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.

Credits & Info

Views
6,104
Faves:
9
Votes
11
Score
4.42 / 5.00

Uploaded
May 20, 2011
11:07 PM EDT
Genre
Tutorial