jack27121 / STANNcam

An easy to use camera object for Gamemaker studio, with options to change game and GUI resolution independently, and upscale pixelart
MIT License
34 stars 5 forks source link

reimplement room_to_displaay_x / y #32

Closed jack27121 closed 10 months ago

jack27121 commented 1 year ago

it's in the stanncam code it's just uncommented

this might work, but haven't tested it

    /// @function room_to_display_x
    /// @description returns the room x position as the position on the display relative to camera
    /// @param {Real} x_
    /// @returns {Real}
    /// @ignore
    static room_to_display_x = function(x_){
        return ((x_-get_y()-x_frac) / get_zoom_x()) * stanncam_get_res_scale_x();
    }
bfrymire commented 10 months ago

Duplicate of #51