flixel icon indicating copy to clipboard operation
flixel copied to clipboard

More control over camera shake

Open JoeCreates opened this issue 11 years ago • 6 comments
trafficstars

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.

JoeCreates avatar Apr 24 '14 14:04 JoeCreates

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.

Gama11 avatar Apr 24 '14 14:04 Gama11

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.

JoeCreates avatar Apr 24 '14 14:04 JoeCreates

As long as NumTweens are used, I'm ok with it.

gamedevsam avatar Apr 24 '14 14:04 gamedevsam

You mean NumTweens. ;) Edit: Well I guess you corrected that.

Gama11 avatar Apr 24 '14 14:04 Gama11

I'll do this too

MSGhero avatar Mar 09 '16 04:03 MSGhero

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.

JoeCreates avatar Nov 14 '17 05:11 JoeCreates