GDevelop icon indicating copy to clipboard operation
GDevelop copied to clipboard

Add "Camera Zoom" condition

Open Elairyx7301 opened this issue 3 years ago • 6 comments

Description

There is no camera zoom condition, only a camera expression. This feels strange because there are conditions for every other or most other main camera parameters like X position, height, angle etc. and only zoom is missing. I think this should be added because for example newer users likely aren't familiar with the expressions available, search for "zoom" in the conditions and won't find anything when there actually is an expression for it.

Solution suggested

Add a CameraZoom(Layer, Camera) condition

Image

image

Elairyx7301 avatar Dec 01 '21 14:12 Elairyx7301

I'll work on it this week end !

Oxey405 avatar Dec 01 '21 15:12 Oxey405

Any progress on the issue @Oxey405?

Elairyx7301 avatar Dec 27 '21 09:12 Elairyx7301

I can provide a few steps if you need any help

AlexandreSi avatar Dec 29 '21 11:12 AlexandreSi

@AlexandreSi I'm sorry for the mention here but I might be able to take a look at this myself and I'd be happy about a hint, mainly concerning which files need changes for this, since I'm not completely sure about how the code structure works, yet. Thanks in advance :)

Elairyx7301 avatar Mar 30 '22 07:03 Elairyx7301

@Elairyx7301 sorry for the delay, here is your hint:

  • Files that should be changed:
    • Core/GDCore/Extensions/Builtin/CameraExtension.cpp
    • GDJS/GDJS/Extensions/Builtin/CameraExtension.cpp
    • GDJS/Runtime/events-tools/cameratools.ts

AlexandreSi avatar Apr 13 '22 11:04 AlexandreSi

Thank you! 👍 I might also not be able to look at it in the next dozen days or so but I really want to give it a try.

Elairyx7301 avatar Apr 13 '22 13:04 Elairyx7301