ForumsProgramming ForumWall code

4 3551
Midmenj
offline
Midmenj
216 posts
Nomad

I am trying to make my own wall code and so far all I have is this.

if( wall.hitTest(hero._x, hero.y,true)){
hero._y= wall._y;
speedY=0;
}


This may be kind of right or completely wrong. Please help
  • 4 Replies
master565
offline
master565
4,104 posts
Nomad

is this as3 or as2 and also its very difficult to tell what your vars are

Midmenj
offline
Midmenj
216 posts
Nomad

it's AS2

plasmafish
offline
plasmafish
252 posts
Nomad

If you're doing a left/right wall you might need an instance for each of them.

Midmenj
offline
Midmenj
216 posts
Nomad

ok, now what?

Showing 1-4 of 4