Welcome to GraphicForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

tweening to full integers

 
   Graphic Forums (Home) -> General Discussions RSS
Next:  problems with this bit of code  
Author Message
krustafarian

External


Since: Jan 17, 2006
Posts: 10



(Msg. 1) Posted: Tue Apr 25, 2006 7:55 am
Post subject: tweening to full integers
Archived from groups: macromedia>flash (more info?)

my objects ease into place using an inertia script....the bit i suspect is
causing my pixel fonts and graphics to appear blurred is this...

if (Math.abs(mc_Target.nDestY-mc_Target._y)<1) {
clearInterval(iEase);
}
}, 24, this);
};

...as it will stop tweening if the value is under 1 (i.e. it could be a
decimal value). i need it to stop at 0, but obviously thats not possible since
the inertia will just keep going!.

is there a way around it?

 >> Stay informed about: tweening to full integers 
Back to top
Login to vote
.:}x-=V!P=-x{:.

External


Since: Jan 12, 2005
Posts: 18



(Msg. 2) Posted: Tue Apr 25, 2006 4:55 pm
Post subject: Re: tweening to full integers [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

this might work It may make a small jump depending on the fraction of pixel it catches.

if (Math.abs(mc_Target.nDestY-mc_Target._y)<=0) {
mc_Target._y = mc_Target.nDestY;
clearInterval(iEase);
}

 >> Stay informed about: tweening to full integers 
Back to top
Login to vote
Display posts from previous:   
   Graphic Forums (Home) -> General Discussions All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]