Search found 29 matches

by Manyrio
Thu Jul 14, 2016 11:02 am
Forum: Support and Development
Topic: Problem with table serialization
Replies: 8
Views: 4702

Re: Problem with table serialization

Yep sorry ^^

It make some horizontal shift like this :
Image
by Manyrio
Wed Jul 13, 2016 7:49 pm
Forum: Support and Development
Topic: Problem with table serialization
Replies: 8
Views: 4702

Problem with table serialization

Hey, I have problem while loading (or saving, I don't really know) my map, it does things like these : http://puu.sh/q0Acg/0baead1181.jpg here's the code : -- this is for import map to string function map2string(maptable,typeser) local sz = '' for y = 0, map.height do local row = {} for x = 0, map.w...
by Manyrio
Tue Jul 12, 2016 10:36 am
Forum: Support and Development
Topic: Trouble With Math.
Replies: 2
Views: 1849

Re: Trouble With Math.

I didn't check the code but I thin it is because the player don't stop moving. So to stop that you can do something like :

Code: Select all

if player.x == pointB.x and player.y == pointB.y then
	-- create a function that stop the player, for the exemple I will use :
	player.stopMoving()
end
by Manyrio
Mon Jul 04, 2016 8:32 pm
Forum: Libraries and Tools
Topic: Terra A* Pathfinding
Replies: 4
Views: 4551

Re: Terra A* Pathfinding

http://puu.sh/pQjBY/633e4f7e57.png
Wow ! It's really great !
by Manyrio
Fri Apr 08, 2016 6:51 pm
Forum: Support and Development
Topic: How do you make a trail behind a rectangle?
Replies: 8
Views: 3359

Re: How do you make a trail behind a rectangle?

use canvas, do a canvas on your rectangle then use it for your particles
by Manyrio
Fri Apr 08, 2016 6:18 pm
Forum: Support and Development
Topic: How do you make a trail behind a rectangle?
Replies: 8
Views: 3359

Re: How do you make a trail behind a rectangle?

Yes it's normal, if you want to create particle with Löve you have to define some thing
on the wiki, there is a little tutorial :
https://love2d.org/wiki/love.graphics.newParticleSystem
by Manyrio
Sun Mar 20, 2016 8:51 am
Forum: Support and Development
Topic: Shader tile
Replies: 4
Views: 3009

Re: Shader tile

Hey ! Thanks, that's better but it still doesn't work :(
it do someting like that :
Image
if i jump a little bit :
Image
If i rejump a little bit :
Image
by Manyrio
Sat Mar 19, 2016 11:35 pm
Forum: Support and Development
Topic: Shader tile
Replies: 4
Views: 3009

Re: Shader tile

Here's the code : function shadwo_update() for x = begx, endx do --math.floor((player.x)/32)+player.focus for y = begy, endy do if (x > begx and y > begy) and (x < endx and y < endy) then if map[x][y] == 1 then dark.r[x][y] = 255 dark.g[x][y] = 255 dark.b[x][y] = 255 dark.a[x][y] = 255 end if map[x]...
by Manyrio
Sat Mar 19, 2016 11:05 pm
Forum: Support and Development
Topic: Shader tile
Replies: 4
Views: 3009

Shader tile

Hey ! I am learning Love2d GLSL shader, and if I am here it's because I have a problem :/ I want to do shadow on my tiles like this : http://gamingbolt.com/wp-content/uploads/2014/04/starbound.jpg but when I test with shader it do that : http://puu.sh/nMEld/47f540338f.jpg I send variable to my shade...