# Soldiers&Saints Navigation. Any tips?

**URL:** <https://forum.kirupa.com/t/soldiers-saints-navigation-any-tips/117275>\
**Category:** Uncategorized\
**Created:** [July 26, 2004, 12:44pm UTC](https://forum.kirupa.com/t/soldiers-saints-navigation-any-tips/117275 "2004-07-26T12:44:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![as\_clark20](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@as\_clark20](https://forum.kirupa.com/u/as_clark20)\
**Post date:** [July 26, 2004, 12:44pm UTC](https://forum.kirupa.com/t/soldiers-saints-navigation-any-tips/117275/1 "2004-07-26T12:44:01Z")

</div>

[saintsandsoldiers.com/](http://www.saintsandsoldiers.com/)

See the link above for what I mean. Does anyone know how to create this effect in the navigation, its fantastic the way the foreground moves faster than the background, this gives a wonderful real-life perspective effect.

Anyone got any tips or tutorials out there?

Kind Thanks.

Ads.

---

<div class="post-metadata">

**Author:** ![stringy](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@stringy](https://forum.kirupa.com/u/stringy)\
**Post date:** [July 26, 2004, 4:51pm UTC](https://forum.kirupa.com/t/soldiers-saints-navigation-any-tips/117275/2 "2004-07-26T16:51:52Z")

</div>

> [@as\_clark20](#):
>
> [saintsandsoldiers.com/](http://www.saintsandsoldiers.com/)
> 
> See the link above for what I mean. Does anyone know how to create this effect in the navigation, its fantastic the way the foreground moves faster than the background, this gives a wonderful real-life perspective effect.
> 
> Anyone got any tips or tutorials out there?
> 
> Kind Thanks.
> 
> Ads.

looks really well made, but the actual effect is quite simple. Try this with 2 movieclips instance names mc1 & mc2  
written on the timeline:-  
speed = .98;  
speed1 = .9;  
//speed should be between 0 and 1. the closer to 1 the slower the ease-in  
//you`ll have to experiment a bit

setInterval(moveF, 40);  
function moveF() {  
mc2.\_x = speed1_mc2.\_x+(1-speed1)_(mc2.\_width/2-\_xmouse);  
mc1.\_x = speed_mc1.\_x+(1-speed)_(mc1.\_width/2-\_xmouse);  
}

---

<div class="post-metadata">

**Author:** ![2nd\_day](https://avatars.discourse-cdn.com/v4/letter/2/a4c791/32.png) [@2nd\_day](https://forum.kirupa.com/u/2nd_day)\
**Post date:** [July 26, 2004, 8:15pm UTC](https://forum.kirupa.com/t/soldiers-saints-navigation-any-tips/117275/3 "2004-07-26T20:15:25Z")

</div>

i actually think this is done with the use of depths… maybe you should read [http://www.kirupa.com/developer/actionscript/depths.htm](http://www.kirupa.com/developer/actionscript/depths.htm) and see [http://www.kirupa.com/developer/mx/starfield\_perspective.htm](http://www.kirupa.com/developer/mx/starfield_perspective.htm)  
in the last one you can see an example of the use of depths.

---

<div class="post-metadata">

**Author:** ![stringy](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@stringy](https://forum.kirupa.com/u/stringy)\
**Post date:** [July 26, 2004, 8:34pm UTC](https://forum.kirupa.com/t/soldiers-saints-navigation-any-tips/117275/4 "2004-07-26T20:34:11Z")

</div>

> [@2nd day](#):
>
> i actually think this is done with the use of depths… maybe you should read [kirupa.com - Depths in Flash](http://www.kirupa.com/developer/actionscript/depths.htm) and see [kirupa.com - Experiments with Perspective](http://www.kirupa.com/developer/mx/starfield_perspective.htm)  
> in the last one you can see an example of the use of depths.

yeh, the mans head popping out is done with swapDepths() but the rest is just different speeds. Used in making games quite aa bit.
