PDA

View Full Version : A Annoying Problem On Script


Paulo & Claudio
09-13-2003, 05:37 PM
A ANNOYING problem on script(the file is not ready).
Is a Earth with a Moon rotating by the Earth.
the movements uses swapDephts(...) to the Moon disappear when go behind the Earth.
But when the moon go to the Earth and do the action, the animation stops!!!

Paulo & Claudio
09-14-2003, 03:06 PM
...

Paulo & Claudio
09-16-2003, 05:33 PM
someone can help us with this problem?

ratkat
09-16-2003, 05:40 PM
heya PAULO & CLAUDIO <<<<<happy???

Im not a swishscript expert yet but why is there a false ststement at frame 16...also have you tried putting a goto frame 0 at the end of the move?
Hope thats a start...wish i could help more
Les

edit: ok i see why theres a swap depth , but wouldnt you ant to set it so that
if moon reaches here swapdepth true?...again i havent played with swap much nor the swishscript yet but i will play with this one.

Im not sure..I seem to be getting stopped where your swapdepth is

Brian Ayers
09-16-2003, 06:01 PM
I got it to swap depths -- but, it duplicates the 'moon' sprite ... a problem I'm not sure how to fix (yet):
onFrame (2) {
*_root.moon.swapDepths(100);
}
onFrame (17) {
*_root.earth.swapDepths(100);
}
onFrame (34) {
*gotoSceneAndPlay("<current scene>",2);
}

From the Flash help files:
Swapping the depth level of movie clips has the effect of moving one movie in front of or behind the other. If a movie is tweening when this method is called, the tweening is stopped.

ratkat
09-16-2003, 06:08 PM
Brian
As well as Im sure PAULO & CLAUDIO (<<<<happy???) is so thankful for the answer, so am I, thank you for clearing that up.....
The duplicate object is interesting tho...That has to be how Max interprets the answer for bringing one to the rear, but notice the dup doesnt move at all...prob a small bug
Les

dammitjanet
09-16-2003, 06:29 PM
hmm when i tired it, the planet disappeared totally, and then i had one static moon and one going half way round the invisible panet then jumping back a while later.

something odd going on.

Paulo & Claudio
09-17-2003, 04:08 PM
Look ratkat,

our name is not just "Paulo". Is Paulo and Claudio. We´re twins.

ratkat
09-17-2003, 05:02 PM
As i replied to you privately as you had sent me a private msg regarding this, I apologize and will in the future try and remember to ensure that i also ask you if you would like a cup of tea to go with your name...
Informing me privately about my shortcuts to typing is fine but please do not come accross publicly like you are yelling...its not polite when someone is trying to help figure something out...Now i am going to EDIT my previous posts and ensure that i have your spelling correct....In the future i doubt very much that I will have to woory too much about it...have a nice day
Les

Hoosier_Daddy
09-17-2003, 05:28 PM
Paulo & Claudio

Did you post this bug in the swishzone forum? Im interested to see this fixed.

~Jer~

pitje
09-25-2003, 06:52 AM
a non-scripted solution:

make 1 sprite with
1 earth
1 moon
1 earth

give the moon a few move-effects so it turns around the earth, and then fiddle a bit with place and remove commands on both earths

example (http://www.jurroen.com/file/3dfake.swi)

:)

:pitje: