Search found 50 matches

by AdrianN
Wed Jul 03, 2019 5:38 am
Forum: Support and Development
Topic: [SOLVED] Draw texture mesh in polygon with n points
Replies: 6
Views: 540

Re: [SOLVED] Draw texture mesh in polygon with n points

Sure, I'm a newbie using mesh, but I'm getting what you mean and theory, hehe.
I didn't know about the triangles and that application in polygon. Annotated.
by AdrianN
Mon Jul 01, 2019 5:24 pm
Forum: Support and Development
Topic: [SOLVED] Draw texture mesh in polygon with n points
Replies: 6
Views: 540

Re: [SOLVED] Draw texture mesh in polygon with n points

That's the part about deciding how you want to apply the texture to the mesh. That's what I meant when I said that "What you need to do first is decide how the polygon fits in the texture". I was under the impression that you were after something like the attached. Would you please clarify how you ...
by AdrianN
Mon Jul 01, 2019 4:56 am
Forum: Support and Development
Topic: [SOLVED] Draw texture mesh in polygon with n points
Replies: 6
Views: 540

Re: Draw texture mesh in polygon with n points

The UVs are texture coordinates in the range 0..1, where 0 is the left (for u) or bottom (for v) side, and 1 is the right or top side. In wrap mode, values below 0 or above 1 cause copies of the texture to be drawn. What you need to do first is decide how the polygon fits in the texture. I guess it...
by AdrianN
Sun Jun 30, 2019 2:04 am
Forum: Support and Development
Topic: [SOLVED] Draw texture mesh in polygon with n points
Replies: 6
Views: 540

[SOLVED] Draw texture mesh in polygon with n points

Hi everyone, I was recently able to finish creating a destructible environment, using box2d and polygon library. I'm working to optimizate it. I'm using chain shape. https://github.com/AlexarJING/polygon https://i.imgur.com/tuzJ29j.png Now, I need to draw with textures. I'm using mesh to draw on the...
by AdrianN
Sat Jun 22, 2019 6:57 pm
Forum: General
Topic: Bump.lua - collision not working
Replies: 9
Views: 1412

Re: Bump.lua - collision not working

Ok, I really want to learn this but it is getting very frustrating. I cannot get the collision to work. I cannot find a tutorial that really shows me how to do the collision. The picture shows my character but he is going right through the object that I want him not to go through. Is there any one ...
by AdrianN
Fri Jun 21, 2019 3:32 am
Forum: General
Topic: Bump.lua - collision not working
Replies: 9
Views: 1412

Re: Bump.lua - collision not working

Ok, I really want to learn this but it is getting very frustrating. I cannot get the collision to work. I cannot find a tutorial that really shows me how to do the collision. The picture shows my character but he is going right through the object that I want him not to go through. Is there any one ...
by AdrianN
Wed Jun 19, 2019 11:17 pm
Forum: Games and Creations
Topic: Eclipso - Local Multiplayer shooter
Replies: 0
Views: 817

Eclipso - Local Multiplayer shooter

Hello, been developing a video game for a few months ago, because of the university, I'm working slowily. He had to pause my previous game, for continuous changes. Status : Beta 3 I've already reached a point where my game is playable and I'd like to share it. (still incomplete) I tried to make my c...
by AdrianN
Wed Jun 19, 2019 8:25 pm
Forum: General
Topic: Bump.lua - collision not working
Replies: 9
Views: 1412

Re: Bump.lua - collision not working

2lostsouls wrote:
Wed Jun 19, 2019 1:54 pm
1. Do I put the sprite image on an image layer on the map after making the collidable tiles, or on an object layer?
I'm not sure, but I think the image layer and the object layer are identical, only one is dedicated to images.
STI admits both layers.
by AdrianN
Tue Jun 18, 2019 7:01 pm
Forum: Support and Development
Topic: Having problems with an AABB Collision Function
Replies: 3
Views: 1509

Re: Having problems with an AABB Collision Function

Hello, I'm not sure if this will solve your problem. You save your last xy axis and if it collides you assign it to your player.x and player.y. In theory it should work. player={x=0,y=0,w=25,h=25,oldx=0,oldy=0} boxes={} table.insert(boxes,{x=40,y=0,w=50,h=50}) col=false function love.update(dt) --fi...
by AdrianN
Tue Jun 18, 2019 6:34 pm
Forum: General
Topic: Bump.lua - collision not working
Replies: 9
Views: 1412

Re: Bump.lua - collision not working

I think because in your collision filter you writed collideable instead of collidable.
I'm not sure, but you could try.

I recommend this tutorial, I used it when i used the bump library.

http://osmstudios.com/tutorials/love2d- ... ing-levels