Anyone know how to zoom out the camera

i need to zoom out my screen/camera for a game anyone know how?

3 Likes

I guess you could use @Kiwiphoenix364’s zoom extension

1 Like

Welcome to the forums! Sadly, I don’t think that it’s possible. If you needed to zoom in, it would be possible with some code, but zooming out would require a different way of rendering

This code should work

namespace userconfig {

const ARCADE_SCREEN_HEIGHT=120
const ARCADE_SCREEN_WIDTH=160
}

Please note that these numbers are the default Makecode paramaters, just play with them to see how they go.

If you code in blocks, there is unfortunately no way to utilise this mechanic, so if you just go into the JS editor and paste them, then when you convert your project back to blocks, the JS code that you pasted in should appear as a grey block.

Here is a project that you can edit if you like.

Also, I forgot to say, welcome the the community @nrix5482!!!

Kiwiphoenix364’s zoom extension doesn’t work for zooming out the camera, only zooming in.

I guess you could use kiwiphoenix’s extension, double the width and height of the arcade screen, then zoom the camera in 2x to simulate a 160x120 screen that you can zoom out and in

1 Like

It does, you just need to put either a decimal or negative (I forget which one)

1 Like