Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

RenJS

HTML5 Visual Novel creation made easy and free · By lunafromthemoon

Blurry character asset

A topic by Lapinay created Mar 24, 2019 Views: 305 Replies: 2
Viewing posts 1 to 3
(1 edit)

Hi. I'm a beginner on RenJS.  I need help on a simple issue. My character asset is width 600 px and height 300 px, scene is 800 px vy 600px but the engine seems to enlarge the picture to more that my actual image size, so it looks blurry and not sharp. I notice something similar on the démo tutorial. What should i do ? Can i force the image to appear on a desired size ? I've tried the following, but it did not work :  normal: assets/characters/foodtruck-owner.png  600 300

My image is not blurry on my computer preview or neither in Photoshop...



Developer(+1)

Hello Alix, I can confirm that the character spriter are not scaled on their own. The whole game may be scaled to fit the window, and that could cause the issue. When you open the folder of the game there's a file called config.js, there you have a variable "scaleMode" that can take the values: EXACT_FIT (will scale to fit the window exactly), NO_SCALE (will not scale), SHOW_ALL (will scale but maintain proportions). Try using NO_SCALE and see if the issue is fixed. RenJS is based on Phaser, the assets are loaded exactly like in this example https://phaser.io/examples/v2/basics/01-load-an-image, may you try to use your own in an example like this and check if the problem persists.

Thank for the clear answer ! It is exactly what i need :)