i beg you.
- Started
- Last post
- 7 Responses
- chinaman
inertia script, how can i get it to load a movie when it reaches its final position,although i heard it never does reach its position? any ways around it? thank you.
- rasko40
shouldn't you 'fake it' - otherwise its a continuos loop no? or am I mistaking 'inertia' for something else? OnClipEvent perhaps?
sorry, I've had an entire bottle of Absolut in a Kahlua and milk (white russian) type way *hic*
- chinaman0
i have no idea rask, thanks anyway, merry xmas.
- rasko40
and only one cigarette left... whats a chap to do?
- chinaman0
leg it to the petrol station
- rasko40
unfortunetely at this stage. legging it anywhere would undoubtedly result in broken limbs... its taken me this long just to proof read my own typing
(actually just 2 I noticed, but slow) (though I made 2 in these parenthesis and one in this.(one before.. this could be endless..I am surely pissed, and no cigarettes left now :(?)
- brundlefly0
heh drunk typing is always classy
- beingdevious0
hmm well. think of it this way..
take 10 and divide it by 2
5 div by 2 again
2.5
again..
1.25
if you keep dividing the result by 2, you wil;l *theoretically* never reach 0 you will reach a very small decimal however..say 0.00000000001your moving the xpos of Object
with (object) {
_x-=_x(_x-finalDest)/constant
}check to see if object._x is less than say 0.5 if it is, turn on a variable and use the variable as a switcher.
therfore the code youre executing is in an if statement on the enterframe.
doTheCode=true
this.onenterframe=function(){
if (doTheCode) {
execute this;
}
}
inside the execution set, turn the variable off(false) and set the variabel initially to true.if your doing multiple things, make a multi state variable
dotheCode=1, 2, or 3
if doTheCode==1){
do this
}else if (dothecode==2) {
do 2nd
}...you get the idea