-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FlxCamera follow jitters #5
Comments
This bug is also mentioned in the following thread: It seems like Krix has been hard at work making additional changes than just the one fix listed in this issue's comments. |
I've noticed Krix work. I analyzed his commit log and there seems to be a huge change in It would be great if we could add the camera fix without touching too many other classes. |
Apparently, replacing those two lines with: var targetX:Number = FlxU.ceil(target.x + ((target.x > 0)?0.0000001:-0.0000001));
var targetY:Number = FlxU.ceil(target.y + ((target.y > 0)?0.0000001:-0.0000001)); like mentioned in the thread seems to fix all the issues except for the |
I noticed the same, and I have been meaning to send an email to him. The thing is, in every instance where he accesses the Krix also has several changes made to his personal Flixel branch, but since the changes in the two projects use different commit identifiers, I have yet to filter which ones have been applied in both repositories. I was hoping @krix would be willing to do it if he still remembers the changes he made (you know how that is, picking up an old project after a few months, it's often as if someone else wrote the code). |
Hi there! As far as I remember, I made the change due to a memory leak issue with the draw() function in flash > 10. However, if you just want to fix the jittering, you should do the following changes: I hope this helps. Cheers, |
Ah, magnificent! :) Thanks for the quick clarification, Dirk. In case anyone was looking for more information on the bug: The good news is, it seems this issue was resolved July 2011. It doesn't say which version of Flash Player it was fixed in, but I think it's safe to say, that version is in "standard use" right now. (I was going to post a link to the Flash Player Version statistics here, but alas, I can't any updated stats). |
@krix Is this commit part of this bug, or is it referring to a different "jittering"? krix@c5ca1ca EDIT: Never mind, I see the change was undone. krix@b34c606 |
Fixed in 1f19b26 |
Resolves the following issue: * FlixelCommunity#5 - AdamAtomic#227 Fix provided by [Krix](https://github.com/krix)
Issue #227 by: volvis
I noticed an ever slight jitter around my playable character when the camera was tracking it. Imagine the sprite jumping a pixel in advance and back the second frame and you get a good idea of the effect I'm talking about.
Poking around the update call in FlxCamera, rounding the coordinates of the game character seemed to fix the issue.
Can't really tell if it's a bug or not, but I figured I'd toss it out in the open.
The text was updated successfully, but these errors were encountered: