Zoom Extension

But how to I make everything smaller?

A new update is out (with the same link as before, kiwiphoenix364/pxt-zoom), which allows you to zoom into different sides of the screen (still, what you zoom into has to originally be on camera), so if you want to zoom into any side of the screen without changing the camera position, that is now possible! (center is the original one, and top-left, top, top-right, left, right, bottom-left, bottom, and bottom-right have been added!) I plan to keep updating this extension according to the feedback of others on this forum post, as well as (maybe, if I can figure it out) add an option for smooth zooming, as well as zooming that doesn’t require on game update (blocks that say like “zoom by __ times for __ms”, or even “zoom from __ times to __ times over __ ms”.

3 Likes

UPDATE 2.0 IS OUT!
(I know you’ll like this @danger_kitty lol!)
With the help of @AqeeAqee on this topic, I figured out a new way of zooming - but it runs wayyyy better (almost as if the extension wasn’t running) and even has full perf on hardware! It’s the same extension (kiwiphoenix364/pxt-zoom), but the blocks are reworked to be better and more intuitive! Zoom no longer works in the negative values due to how it is coded. (Although I could easily add that in manually - but I may add new blocks for zooming x and y individually, so I will probably wait until then to implement negative values, I may also add a mirror screen block for ease of use as an addition too.)

The offset block will zoom with an offset of the specified pixels, and the anchor one will be anchored to one part of the screen! If you click +, it will zoom from its current “zoom level” to the new one in a specified number of milliseconds, or if the + isn’t clicked (or the number is set to below 25, the time between screen updates in the extension), it will zoom instantly. To set the zoom back to normal, simply set the zoom to 1. Enjoy!!!

4 Likes

lets gooooo metroid dread melee counter is finally possible

Btw, old games with this extension may be messed up now if you edit them because of the changed blocks (Idk if the extension updates unless done manually though). The current blocks are here to stay and I won’t be doing any updates that break current projects anymore. Feel free to use this extension in your projects.

Also, @UnsignedArduino can you update this entry on your list? Now it doesn’t use on game update and instead just sets the zoom, and includes smooth zooming.

I also won’t add new blocks (most likely) as I’m working on a new project which is in development, currently as kiwiphoenix364/pxt-beta-screen-effects, which will include zooming, bluring, and more (on hardware too)! When it is out of the development process, Feel free to play with it, but NOT on games you care about. Most likely your games will break if you use this because I will be updating this a lot. It will get a new link and forum post when released, which will be stable!

1 Like

Done. Can’t wait to see the new extension!

1 Like

As I said, you can use it for beta testing at kiwiphoenix364/pxt-beta-screen-effects now, but (except at the time of the previous post I forgot to create a release). (again, don’t use this in projects you care about/want to keep working on, as they will most likely break in the future) I’ve added a new effect, static, which takes the colors on-screen and makes a “static” effect from them. I’ve also made a topic that shows updates and new features, as well as takes feature suggestions and questions for this new extension (as it is somewhat off-topic to this zoom extension post)

1 Like

Yes beta mode

2 Likes

Super Usefull:

image

It will make it zoom in and follow the player.
Thanks, @Kiwiphoenix364!

2 Likes

I do believe typically the extension with camera follow player is enough, unless you are going against the edges of the screen which might need some extra math. But thank you for using my extension, hope you enjoy! I tried to make it flexible.

4 Likes

I know this is a dead project. But I was wondering if @Kiwiphoenix364 Have any answers to why I am getting this error?

1 Like

@Kiwiphoenix364 is there a way to set the resolution to any size, eg. 512 x 512 as the set resolution but zooming in to 120 x 160

1 Like

Check out this for changing the resolution. After that, the zoom extension should just work because a while back I made it compatible with any resolution. So say you set the resolution to double that of normal, you should just be fine to zoom into 2x to go back to the original.

yes, I know this strategy but I’m asking if there is a way to set the width and height using the zoom extension; I’m making a console and I’m trying to make it compatible with any resolution, so if I set the default resolution to 512 x 512, could I zoom in to let’s say 320 x 240?

2 Likes

Possibly but some pixels may not be uniform. Also just make note that you’ll have to calculate the number (from quick calculation at 512x512 you’d have to use 1.6x zoom for 320x320). If you wanted a different aspect ratio, you’d have to put black bars around it manually though. I’d recommend making everything the same aspect ratio for this reason.

1 Like

ok thanks.

2 Likes

could you make the old one public or add a way to zoom out plz :folded_hands: