Search found 73 matches

by AdrianN
Wed Jun 19, 2019 8:25 pm
Forum: General
Topic: Bump.lua - collision not working
Replies: 9
Views: 12203

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: 6752

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: 12203

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
by AdrianN
Sun Jun 16, 2019 9:24 pm
Forum: Support and Development
Topic: [SOLVED]How to make destructive terrain like worm?
Replies: 4
Views: 4363

Re: How to make destructive terrain like worm?

Sounds like "clipper" can do exactly what's needed there - it's specifically a boolean geometry operations library. I guess the way you work with it is that you create your terrain shape and keep that, and create destruction shapes as appropriate and use them to cut away at the terrain sh...
by AdrianN
Sun Jun 16, 2019 5:05 am
Forum: General
Topic: Collision Editor not working as expected
Replies: 7
Views: 7215

Re: Collision Editor not working as expected

Thank you very much for your help. That is what I needed to know. Which one do you prefer between bump.lua, HC or box2d? I edited my last post (in bold text) I work actually with box2d, because I use physic like force, acceleration and impulse in my game. But it depends on how you work on your proj...
by AdrianN
Sun Jun 16, 2019 4:16 am
Forum: Support and Development
Topic: [SOLVED]How to make destructive terrain like worm?
Replies: 4
Views: 4363

Re: How to make destructive terrain like worm?

If you need box2d then it's a fair bit more difficult, but if you only need the degree of physics like in worms then you could use the same technique: bitmap. The map graphics IS your physics object, when you check collisions against terrain you check for non-transparent pixels in the image. Given ...
by AdrianN
Sun Jun 16, 2019 1:56 am
Forum: General
Topic: Collision Editor not working as expected
Replies: 7
Views: 7215

Re: Collision Editor not working as expected

This is true. I am sorry I did not clarify that. I am using the collision editor in TILED, from mapeditor.org. I figured other people have used it and would be able to help. Unless there is a better way of doing it. Should I use bump.lau instead. Would that be better? Hi, do you mean this collision...
by AdrianN
Sun Jun 16, 2019 1:28 am
Forum: Support and Development
Topic: [SOLVED]How to make destructive terrain like worm?
Replies: 4
Views: 4363

[SOLVED]How to make destructive terrain like worm?

Hi all, I have a question, about how to make a destructive environment like worms games in love2d. Is possible create that functionality in Love2d, using box2d? I've been doing some research and I found some examples: https://www.reddit.com/r/love2d/comments/5fewss/work_in_progress_worms_clone_with_...
by AdrianN
Wed Mar 20, 2019 2:59 pm
Forum: Support and Development
Topic: Strange movements box2d[SOLVED]
Replies: 2
Views: 1979

Re: Strange movements box2d

I can't tell for sure, but it seems to me that you need fixed rotation. Try self.collider:setFixedRotation(true). Alternatively, you can set the density of the melee fixture to 0 and call resetMassData on the body. My opinion is that the eccentricity of the melee sensor causes collisions to introdu...
by AdrianN
Wed Mar 20, 2019 5:48 am
Forum: Support and Development
Topic: Strange movements box2d[SOLVED]
Replies: 2
Views: 1979

Strange movements box2d[SOLVED]

Hi, I'm making a top down game with box2d, at the moment I have a problem with a strange movement, with two bodies collides between theirs. This event appear only with I create a extra fixture (fixture_melee). Fixture_melee is a sensor to simulate a melee attack. To move the body I use only setLinea...