Search found 11 matches

by Thorkal
Sun Apr 05, 2020 10:11 am
Forum: Support and Development
Topic: STI+Bump = collision issues
Replies: 0
Views: 3034

STI+Bump = collision issues

Hi everyone, I use tiled maps with the sti+bump combo. The collisions seem to be well handled for characters+environment tiles, but when I try to handle character+character collisions, the collision seem to happen when they not actually touching. I don't see where the issue come from. I tried to sim...
by Thorkal
Sun Nov 17, 2019 8:41 am
Forum: Support and Development
Topic: [SOLVED] Canvas and shader issue
Replies: 12
Views: 7619

Re: Canvas and shader issue

Alright, thank you very much to you all, everything works fine now !
by Thorkal
Sat Nov 16, 2019 4:09 pm
Forum: Support and Development
Topic: [SOLVED] Canvas and shader issue
Replies: 12
Views: 7619

Re: Canvas and shader issue

Okay thank you very much, for your help, it works now.

I have a subsidiary question : for now my shader has a black background. Is it for a shader to have a transparent background ?
by Thorkal
Sat Nov 16, 2019 9:50 am
Forum: Support and Development
Topic: [SOLVED] Canvas and shader issue
Replies: 12
Views: 7619

Re: Canvas and shader issue

By making a simple main.lua file to give you a runnable example, I figured out that the shader worked normally, except that the line is outside the viewable scope. With the canvas (both rectangle and canvas options are in the runnable example) I don't have the issue, but my line doesn't move, as if ...
by Thorkal
Fri Nov 15, 2019 12:01 pm
Forum: Support and Development
Topic: [SOLVED] Canvas and shader issue
Replies: 12
Views: 7619

Re: Canvas and shader issue

Unfortunately, using fill doesn't fix the issue :
Image
by Thorkal
Thu Nov 14, 2019 5:18 pm
Forum: Support and Development
Topic: [SOLVED] Canvas and shader issue
Replies: 12
Views: 7619

Re: Canvas and shader issue

Thanks raidho36, indeed the value of iResolution wasn't correct. But setting the right size doesn't fix the issue, I don't understand why
by Thorkal
Thu Nov 14, 2019 2:59 pm
Forum: Support and Development
Topic: [SOLVED] Canvas and shader issue
Replies: 12
Views: 7619

[SOLVED] Canvas and shader issue

Hi everybody, I have a hard time understanding how to use canvases and shaders together. In my example, I have this code for a class : local Class = require 'libs.hump.class' local Entity = require 'entities.Entity' local DeathLine = Class{ __includes = Entity -- DeathLine class inherits our Entity ...
by Thorkal
Thu Sep 26, 2019 4:40 pm
Forum: Support and Development
Topic: [Solved] Hump.camera + love.physics
Replies: 3
Views: 3074

Re: Hump.camera + love.physics

Okay, thank you to you two.

I, as pgimeno suggested, attached my square to the camera and used setLinearVelocity on it when my player is at a certain minimum distance from it and it works well.
by Thorkal
Thu Sep 26, 2019 2:16 pm
Forum: Support and Development
Topic: [Solved] Hump.camera + love.physics
Replies: 3
Views: 3074

[Solved] Hump.camera + love.physics

Hi everyone, For my project, I use love.physics and camera is handled by hump.camera. I don't want all the stuff on screen move when the player moves, so every entity has a variable set to true if I want then to be camera independent. This is the case for a square that I always want at the top of th...
by Thorkal
Wed Aug 07, 2019 3:19 pm
Forum: Support and Development
Topic: [Solved] Problem with HC
Replies: 1
Views: 3261

Re: Problem with HC

Ok I resolved my problem, collisions are in fact detected, and there's no point in checking if #candidates > 0