# Sticking to where you are?

**URL:** <https://forum.kirupa.com/t/sticking-to-where-you-are/184673>\
**Category:** Uncategorized\
**Created:** [April 6, 2006, 6:51pm UTC](https://forum.kirupa.com/t/sticking-to-where-you-are/184673 "2006-04-06T18:51:47Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ravmaster](https://avatars.discourse-cdn.com/v4/letter/r/ee59a6/32.png) [@Ravmaster](https://forum.kirupa.com/u/Ravmaster)\
**Post date:** [April 6, 2006, 6:51pm UTC](https://forum.kirupa.com/t/sticking-to-where-you-are/184673/1 "2006-04-06T18:51:47Z")

</div>

[CENTER][http://i47.photobucket.com/albums/f163/genutech/f313d01f.swf](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]

---

<div class="post-metadata">

**Author:** ![Joppe](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@Joppe](https://forum.kirupa.com/u/Joppe)\
**Post date:** [April 6, 2006, 7:05pm UTC](https://forum.kirupa.com/t/sticking-to-where-you-are/184673/2 "2006-04-06T19:05:09Z")

</div>

fla, please. 😉

---

<div class="post-metadata">

**Author:** ![Ravmaster](https://avatars.discourse-cdn.com/v4/letter/r/ee59a6/32.png) [@Ravmaster](https://forum.kirupa.com/u/Ravmaster)\
**Post date:** [April 6, 2006, 7:28pm UTC](https://forum.kirupa.com/t/sticking-to-where-you-are/184673/3 "2006-04-06T19:28:45Z")

</div>

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

[http://rapidshare.de/files/17363916/Main.fla.html](http://rapidshare.de/files/17363916/Main.fla.html)

---

<div class="post-metadata">

**Author:** ![Joppe](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@Joppe](https://forum.kirupa.com/u/Joppe)\
**Post date:** [April 7, 2006, 11:13am UTC](https://forum.kirupa.com/t/sticking-to-where-you-are/184673/4 "2006-04-07T11:13:06Z")

</div>

Ah WHY. Why do you use rapidshare ! 😠

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

---

<div class="post-metadata">

**Author:** ![ricer](https://avatars.discourse-cdn.com/v4/letter/r/e47774/32.png) [@ricer](https://forum.kirupa.com/u/ricer)\
**Post date:** [April 7, 2006, 11:16am UTC](https://forum.kirupa.com/t/sticking-to-where-you-are/184673/5 "2006-04-07T11:16:50Z")

</div>

omg nice graphics dude 😉

tell me the exact prob ill fix it

---

<div class="post-metadata">

**Author:** ![Ravmaster](https://avatars.discourse-cdn.com/v4/letter/r/ee59a6/32.png) [@Ravmaster](https://forum.kirupa.com/u/Ravmaster)\
**Post date:** [April 7, 2006, 11:57am UTC](https://forum.kirupa.com/t/sticking-to-where-you-are/184673/6 "2006-04-07T11:57:51Z")

</div>

thnx 😉 but only the tiles are my own work 😃

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 😉

---

<div class="post-metadata">

**Author:** ![Joppe](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@Joppe](https://forum.kirupa.com/u/Joppe)\
**Post date:** [April 7, 2006, 12:39pm UTC](https://forum.kirupa.com/t/sticking-to-where-you-are/184673/7 "2006-04-07T12:39:53Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![Ravmaster](https://avatars.discourse-cdn.com/v4/letter/r/ee59a6/32.png) [@Ravmaster](https://forum.kirupa.com/u/Ravmaster)\
**Post date:** [April 7, 2006, 1:00pm UTC](https://forum.kirupa.com/t/sticking-to-where-you-are/184673/8 "2006-04-07T13:00:04Z")

</div>

thnx 😉

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 😃

---

<div class="post-metadata">

**Author:** ![Joppe](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@Joppe](https://forum.kirupa.com/u/Joppe)\
**Post date:** [April 7, 2006, 1:07pm UTC](https://forum.kirupa.com/t/sticking-to-where-you-are/184673/9 "2006-04-07T13:07:00Z")

</div>

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;  
}

---

<div class="post-metadata">

**Author:** ![Ravmaster](https://avatars.discourse-cdn.com/v4/letter/r/ee59a6/32.png) [@Ravmaster](https://forum.kirupa.com/u/Ravmaster)\
**Post date:** [April 7, 2006, 1:36pm UTC](https://forum.kirupa.com/t/sticking-to-where-you-are/184673/10 "2006-04-07T13:36:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Ravmaster](https://avatars.discourse-cdn.com/v4/letter/r/ee59a6/32.png) [@Ravmaster](https://forum.kirupa.com/u/Ravmaster)\
**Post date:** [April 7, 2006, 3:52pm UTC](https://forum.kirupa.com/t/sticking-to-where-you-are/184673/11 "2006-04-07T15:52:47Z")

</div>

sorry for double posting \>\<

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