Search found 35 matches

by AdrianN
Wed Mar 20, 2019 2:59 pm
Forum: Support and Development
Topic: Strange movements box2d[SOLVED]
Replies: 2
Views: 167

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

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...
by AdrianN
Wed Feb 13, 2019 3:40 am
Forum: Support and Development
Topic: Is there any online editor for Love2D?
Replies: 10
Views: 2828

Re: Is there any online editor for Love2D?

Hi. I would recommend use Love Web Build , is a love.js tools to execute your code in the web. Unfortunately only works with version 11.1 Also, You can't transport your love executable in usb/cloud, like rar/zip file? I have the same problem in my university, but I transport sublime text portable an...
by AdrianN
Wed Feb 06, 2019 2:58 pm
Forum: Support and Development
Topic: [SOLVED] How do you make a platformer?
Replies: 2
Views: 1415

Re: How do you make a platformer?

I'm checking your .love file, and you have some troubles with logic. I recommend these tutorials(I used them) basic tutorial to make platform https://love2d.org/wiki/Tutorial:Baseline_2D_Platformer osmstudio tutorial is incomplete, but you can understand the basic of platform (camera, physics, tilem...
by AdrianN
Wed Feb 06, 2019 2:27 pm
Forum: Support and Development
Topic: [Solved] Collision Check in 2D Platformer
Replies: 5
Views: 1711

Re: [Need help] Collision Check in 2D Platformer

i still couldn't make it. i think i understand the logic but what's the difference between for ipairs() and single for loop? Ipairs is the same if you use for loop. Ipairs only check if table's value is null. --check null and stop for _, obj in ipairs(table) do end --equal to for loop for _, obj in...
by AdrianN
Tue Feb 05, 2019 2:41 pm
Forum: Support and Development
Topic: [Solved] Collision Check in 2D Platformer
Replies: 5
Views: 1711

Re: [Need help] Collision Check in 2D Platformer

Hi, I'm checking your .love file. I would recommend doing something like that love.update(dt) : You put the logic love.draw(): You draw your game You can use AABB function like : function CheckCollision(obj1, obj2) return (obj1.x < obj2.x+ obj2.w and obj2.x < obj1.x+obj1.w and obj1.y < obj2.y+obj2.h...
by AdrianN
Mon Feb 04, 2019 7:48 pm
Forum: Support and Development
Topic: [SOLVED]Change STI object image data in execution
Replies: 0
Views: 1475

[SOLVED]Change STI object image data in execution

Hi, I'm trying to connect body box2d with STI (Simple Tiled Implementation) object layers, with my player is simple, using the funcion layer:draw(), but when I tried to move image object, or another object make in tilemap editor in my game (executed), I don´t know any solution for this problem. I tr...
by AdrianN
Thu Jan 31, 2019 2:24 pm
Forum: Support and Development
Topic: [SOLVED] Doubt LinearVelocity
Replies: 2
Views: 1043

Re: Doubt LinearVelocity

I don't understand the issue well. Do you mean that using the controls to "press" against the wall keeps the player from falling? If so, that might be a friction issue. I did this experiment and it worked for me: local lph, lg = love.physics, love.graphics local world = lph.newWorld(0, 400) local b...
by AdrianN
Thu Jan 31, 2019 3:35 am
Forum: Support and Development
Topic: [SOLVED] Doubt LinearVelocity
Replies: 2
Views: 1043

[SOLVED] Doubt LinearVelocity

Hi, is my second and last post in the week I'm adapted my HC logic to box2d module, I have a problem using LinearVelocity in my player, because if I press "a" and fall from platform my player stuck in the box and doesn´t slide down. When I use applyLinearImpulse that error no appear, but the control...
by AdrianN
Wed Jan 30, 2019 4:31 pm
Forum: Support and Development
Topic: [SOLVED]love.physics world performance
Replies: 11
Views: 2037

Re: love.physics world performance

Yes, I know, but the mechanics of my game is destroy the map. It doesn't matter - you can still represent each tile square as a fixture and destroy the fixtures instead. Bodies contain a lot of additional information which is wasteful in this application. Ok, do you mean like this https://love2d.or...