| Subject: | Re: Optimizing Performance |
|---|---|
| From: | Mike Blaustein |
| Date: | Sat, 12 Jul 2008 12:00:32 -0400 |
| Newsgroups: | macromedia.director.lingo |
> "There are some things that require prepareFrame, like moving a sprite to match another sprite's location. "Mike, I guess I don't understand why you could not do that on enterFrame? Would you provide an example? It works just fine on enterFrame. But you will notice that the image lags behind a little when moving fast. The specific example I am thinking of is when you remove the cursor and set a sprite to follow the mouse (to make a custom cursor). on enterFrame me sprite(me.spriteNum).loc=the mouseLoc endPut that on any sprite. Press Play. Move the cursor around quickly and it lags a bit. Change the enterFrame handler to prepareFrame and the sprite matches the mouse movement better. The same thing happens if you are trying to match the motion of one sprite to the location of another sprite. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Optimizing Performance, Production Monkey |
|---|---|
| Next by Date: | Re: Optimizing Performance, Production Monkey |
| Previous by Thread: | Re: Optimizing Performance, Production Monkey |
| Next by Thread: | Re: Optimizing Performance, Production Monkey |
| Indexes: | [Date] [Thread] [Top] [All Lists] |