Continuous Zoom In and Zoom Out

Hello!

I am creating a Guitar Hero style game where the person has to press the buttons that come up on the screen now here the problem I’m having is if you are pressing the buttons at the right time the camera will zoom in and out vigorously while if you do 2 wrong the camera still zooms in and out but with less intensity.

How can I make it like this?

like the continuous zoom in and out and choosing the intensity.

Hi,
Try to tween the camera

I am new to Phaser. Can you tell me how?

Hi @Dushyant,
This is an example for zoom in an out the camera using tweens:

For more info look this links:
Camera docs
TweenManager docs
Tween docs
Official camera examples
Official tweens examples

Regards

2 Likes