Hi guys, I’ve just started using DeFold and game dev with lua and i am learning very basics at most i have a pixel art character that is blurry when i apply it to the game is there a way to make render better
I even used this script i found on the fourm
local grid_mag = 2 local pos = go.get_position() local x = math.floor(pos.x / grid_mag + .5) * grid_mag local y = math.floor(pos.y / grid_mag + .5) * grid_mag go.set_position(vmath.vector3(x, y, pos.z))
but it didnt help it showed the following error
RROR:SCRIPT: /scripts/renderer.script:2: You can only access go.* functions and values from a script instance (.script file) stack traceback: [C]: in function 'get_position' /scripts/renderer.script:2: in main chunk WARNING:RESOURCE: Unable to create resource: /scripts/renderer.scriptc WARNING:RESOURCE: Unable to create resource: /_generated_d36b40db.goc ERROR:GAMEOBJECT: Could not instantiate game object from prototype /_generated_d36b40db.goc. WARNING:RESOURCE: Unable to create resource: /main/main.collectionc
Hey so since i am new if there is a stupid mistake pls forgive me and it will be great if i get any help thx