Hello, i was wondering if motion blur based on velocity is possible
Im not sure if you could do that with a built in function with phaser, but you could change the image of the player based on its motion like so…
if (Math.abs(sprite.body.velocity.x) > number || Math.abs(sprite.body.velocity.y) > number)
{
sprite.anims.play('blurry moving animation');
}
else
{
sprite.anims.play('normal animation');
}
all math.abs does is get the absolute value of a number, so it would make -100 turn into 100 but math.abs(100) = 100.
Yes I thought something like texture swapping would be the most correct approach. Because I tried controlling the strength of the postFX.addBlur during the animation but that caused the game to be laggy
That’s good brother thank you