Sticking to where you are?

[CENTER]http://i47.photobucket.com/albums/f163/genutech/f313d01f.swf

check out that link to see the .fla something is wrong when moving from the 2nd room to the 3rd it wont go to it’s set positions is there a way i cn fix the positions on him so he doesnt stray far from them?

-Ravmaster
[/CENTER]

fla, please. :wink:

ok im @ my uncles house now so i had to convert it to flash 8 <.<

http://rapidshare.de/files/17363916/Main.fla.html

Ah WHY. Why do you use rapidshare ! :angry:

Ok so i recomend you position him with AS, mkay?

omg nice graphics dude :wink:

tell me the exact prob ill fix it

thnx :wink: but only the tiles are my own work :smiley:

ok in frame 4,5 and 6 i want to keep the player mc in a certain position everytime he enters the frame

and in all 3 frames i wish to put him in the middle if that will work :wink:

if (this.hitTest(_root.walls.door)) {
_root.nextFrame();
_parent._x = Stage.width/2
_parent._y = Stage.height/2;
}

replace the old hittest code with that :slight_smile:

thnx :wink:

just wondering could i make it that if it goes through ‘walls.door’ then the character will stop at

x= -136.9 and y=160.5

and if it goes thru ‘walls.bkdoor’ then the character will stop at

x= 120.3 y=19.9

if you can then it would be awesome :smiley:

Make the doors different instance names like

if (this.hitTest(_root.walls.door)) {
_root.nextFrame();

_parent._x= -136.9
_parent._y=160.5
}

if (this.hitTest(_root.walls.bkdoor)) {
_root.nextFrame();
_parent._x= 120.3;
_parent._y =19.9;
}

it doesnt work with that code it just goes to where it sets it

sorry for double posting ><

but isnt th ere a way to set properties on the frame saying where it should be?