Need person with action script knowledge.

Subscribe to Need person with action script knowledge. 4 posts, 4 voices

 
avatar for YourTimeHasCome YourTimeHasCome 26 posts

Hello, I am in search of a person with a good understanding of action script.

I have a fairly good knowledge of it myself, but I am in a position where I just don’t know what to do.

Here is my code:

(I don’t know if BB code works here.)

onClipEvent (enterFrame) {

if (Key.isDown(Key.UP)) {

speed += 5;

}

if (Key.isDown(Key.DOWN)) {

speed -= 5;

}

if (Math.abs(speed)>20) {

speed = .7;

}

if (Key.isDown(Key.LEFT)) {

_rotation -= 15;

}

if (Key.isDown(Key.RIGHT)) {

_rotation += 15;

}

speed *= .60;

x = Math.sin(_rotation(Math.PI/180))speed;

y = Math.cos(_rotation(Math.PI/180))speed-1;

if (!_root.land.hitTest(_x+x, _y+y, true)) {

_x += x;

_y += y;

} else {

speed *= -.8;

}

}

This makes my symbol move around using the arrow keys, I need to someone to show me how to make a symbol that if touched by the other symbol (the one controlled by the arrows), will disappear. And one more thing, I would also like to know how to make walls that will send you to a position, like the starting spot.

You could tell me over these forums, or email me.

senthoney@gmail.com

Any help is appreciated, thanks in advance,

YourTimeHasCome

 
avatar for zylum zylum 38 posts

“I have a fairly good knowledge of it myself”

Looks like you have fairly limited knowledge :P Try looking into collision detection.

BTW, shouldn’t this be in the programming forum?

 
avatar for DPbrad DPbrad 520 posts

it should. And just look for a few tuts on google, i found loads of them, so there is no point linking.

 
avatar for BigCheese BigCheese 367 posts

For future posts, you can use the <...pre><.../pre> tags for code. Without the dots.

To remove a movieclip completely, you can use the
your_mc.removeMovieClip();

hitTest will work for testing walls.

wall_mc.hitTest(this._x,this._y,true){
      ......... code
}