Manage the size of your background battle easily

1 Replies • 421 Views

Eurons

Mappeur

Hello,

I have created a small plugin allowing you to change the size of your fighting backgrounds on PSDK and thus to work in higher resolution to then include them in your game.

module Battle
  class Visual

    def create_background
      @background = ShaderedSprite.new(@viewport).set_bitmap(background_name, :battleback)
      @background.zoom = 0.25
      @background.set_position 0,0
    end
  end
end

Best regards,

« Last Edit: 11 January 2022, 15:33:12 by Eurons »

Script Patch Tuto Script PSDK Tuto Making

Eurons

Mappeur

Hello,

script updated, you can now manage the position of your background.

There was an error while thanking
Thanking...