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â.
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!!!
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!
Done. Canât wait to see the new extension!
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)
Yes beta mode
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.
I know this is a dead project. But I was wondering if @Kiwiphoenix364 Have any answers to why I am getting this error?
@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
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?
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.
ok thanks.
could you make the old one public or add a way to zoom out plz