Skip to content

[RenderToSprite] Issue short description #1660

@Farflame2025

Description

@Farflame2025

Is there an existing issue for this?

Enter the name of the extension

Sprite Snapshot

Describe the bug of the extension

The simpler 'Render Scene to a Sprite' seems to work fine, so long as the sprite in question has the same dimensions as the scene, otherwise it'll be stretched. But the 'Render the area of a current scene into sprite' doesn't seem to work correctly in terms of coordinates.

Steps to reproduce

Set up a 'screen' sprite on the left of the scene to receive the image. Set up a couple of sprites on the right of the screen. Now if you try to render the two sprites into the screen sprite using something like 'Render the area of current scene into Sprite : ScreenSprite, from OriginX : Sprite1.CenterX(): Sprite1.CenterY(), with width ScreenSprite.Width(), Height: ScreenSprite.Height(), then I'd assume that what you should see would be a kind of mirror, except the two sprites on the right would appear somewhere like the top left of the screensprite. But they don't appear at all. I'll add a screenshot showing a sample along with the 'code'. Maybe I'm getting confused about the coordinates or something.

Image

GDevelop platform

Desktop

GDevelop version

5.5.228

Platform info

Windows 11.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⚠ Issue with an extensionAn issue with an extension that is already on the extension store

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions