flixel
flixel copied to clipboard
More control over camera shake
It would be nice to have a bit more control over camera shaking, for example, having different types of shake, and being able to tween the intensity.
Could be achieved via turning it into a FlxTween, this would also make FlxCamera more lightweight. The same could maybe be considered for other camera fx too.
Seeing as I can't be assigned, I'll just leave a note here to say that I'll have a go at this in the next couple of days.
As long as NumTweens are used, I'm ok with it.
You mean NumTweens. ;) Edit: Well I guess you corrected that.
I'll do this too
I'm having another stab at this. Some notes:
- I want Camera scroll shaking so that parallax is maintained. This is really hard at the moment due to scroll being a FlxPoint used in multiple places for rendering and assumed to give the render position in many others. I've complained about this before, but scroll being a public FlxPoint makes it really hard to fix!
- I also want angular shake
- While I'll make it so that tweening can be used, it is not an ideal solution, as the best camera shakes are cumulative, as if the camera is on a spring. I'll be implementing it to be more like a spring.