Skip to content
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

Cannot use multiple Layer Camera zoom tweens in the same action #5979

Closed
1 task done
QuetzalcoutlDev opened this issue Nov 29, 2023 · 4 comments
Closed
1 task done

Comments

@QuetzalcoutlDev
Copy link

QuetzalcoutlDev commented Nov 29, 2023

Is there an existing issue for this?

Describe the bug

I am noticing that the camera zoom scene interpolation is not working, I don't know if I am writing some parameter incorrectly but the camera zoom interpolations are not working

Steps to reproduce

  1. Interpolate camera zoom

GDevelop platform

Desktop

GDevelop version

5.3.181

Platform info

Devuan 5 Daedalus

Additional context

No response

@ClementPasteau
Copy link
Collaborator

Hi @QuetzalcoutlDev

Could you give more details please?
A project example, a screenshot of your events, the expected behavior...

@QuetzalcoutlDev
Copy link
Author

QuetzalcoutlDev commented Nov 30, 2023

@ClementPasteau What I notice now is that only one of the interpolations that are executed

Test.zip

Normally each layer has its own zoom, and before it worked for me to do like this in the events

@ClementPasteau
Copy link
Collaborator

ClementPasteau commented Dec 1, 2023

Thanks for the project @QuetzalcoutlDev

Here are your events.

image

You are using the same identifier for both Tween actions. (you left it empty, "")
It means that the second one is overriding the first.

If you want both tweens to work, they need to have different identifiers like such:

image

Also, if you're looking for re-using camera settings on multiple layers, you may consider using this extension: https://wiki.gdevelop.io/gdevelop5/extensions/copy-camera-settings/

I'm closing the issue as this is not a bug. (We may revisit this in the future to show a warning, or allow using multiple tweens with no identifiers, but for the moment this is not planned)

@ClementPasteau ClementPasteau changed the title Camera zoom interpolation not working Cannot use multiple Layer Camera zoom tweens in the same action Dec 1, 2023
@QuetzalcoutlDev
Copy link
Author

@ClementPasteau Well, thank you very much, before if I used the same identifier nothing happened, thanks for solving my problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants