Search found 62 matches

by nyenye
Sun Jan 22, 2017 12:30 pm
Forum: Support and Development
Topic: Remove object on collision?
Replies: 5
Views: 6936

Re: Remove object on collision?

Hi again, good to know it helped you. Seeing the code I have two thing to comment on: 1) collision filtering (as Ivan mentioned earlier), 2) your last question, for which I have some ideas. 1) Let's see, in Lua, tables can be used as Sets (http://lua-users.org/wiki/TablesTutorial - See last section ...
by nyenye
Sun Jan 22, 2017 11:31 am
Forum: Support and Development
Topic: [SOLVED] Resizing a canvas
Replies: 5
Views: 7014

[SOLVED] Resizing a canvas

First of all say that I wanted to post this on the thread for 'Questions that don't deserve their own thread', but I found it locked. Also say that I've search for the 'canvas resize' on the forums and couldn't find the answer that I was expecting/wanted. Question: Can you resize a Canvas without cr...
by nyenye
Thu Jan 19, 2017 11:25 am
Forum: Support and Development
Topic: Remove object on collision?
Replies: 5
Views: 6936

Re: Remove object on collision?

UPDATE: I don't think I'm creating the Bullet "Object" correctly. I've been reading up on Lua OOP and metatables, I think it may be where my problem lies. If someone can confirm that would help Personally I do it this way: local Bullet = { -- here you type in the properties } local bullet...
by nyenye
Wed Jan 18, 2017 4:26 pm
Forum: Libraries and Tools
Topic: AspectRatio - A scaling tool
Replies: 12
Views: 12174

Re: Rationer - A resizing tool

Updated the fist post
by nyenye
Tue Jan 17, 2017 8:05 am
Forum: Libraries and Tools
Topic: AspectRatio - A scaling tool
Replies: 12
Views: 12174

Re: Rationer - A resizing tool

To alberto_lara: Ooh, of couse, today I'll make a love with the examples. Thanks for the tips, was a first time making a tool/lib. Also I'll make a gitlab repo and I'll share it on the main post too. 2 D0NM: I knew about push, and I did try it, but dunno what did wrong because I couldn't get it to w...
by nyenye
Mon Jan 16, 2017 4:16 pm
Forum: Libraries and Tools
Topic: AspectRatio - A scaling tool
Replies: 12
Views: 12174

Re: Rationer - A resizing tool

What I had in mind is to require the file. Something like this: local rationer = require('lib/rationer') love.load() rationer:init(windowWidth, windowHeight, digitalWidth, digitalHeight) -- digitalWidth/digitalHeight is resolution expected for the game end love.draw() -- scale stuff with rationer.sc...
by nyenye
Mon Jan 16, 2017 1:02 pm
Forum: Libraries and Tools
Topic: AspectRatio - A scaling tool
Replies: 12
Views: 12174

AspectRatio - A scaling tool

Hi guys, I've been doing some things with Love2d, and personally had some trouble finding a tool/lib that took care of aspect ratio, resizing and such, and worked for me, so I did my own thing. Just today I packed all the code related to resizing (or all that makes sense) in a Lua file. Right now it...
by nyenye
Tue Jan 10, 2017 7:58 pm
Forum: Support and Development
Topic: Shape is not rotating
Replies: 5
Views: 3888

Re: Shape is not rotating

Have you tried to draw as this tutorial does? https://love2d.org/wiki/Tutorial:Physics

I can't say it's eficient but at least it should be accurate to the body state/angle.

Good luck!
by nyenye
Tue Jan 10, 2017 11:13 am
Forum: Support and Development
Topic: Shape is not rotating
Replies: 5
Views: 3888

Re: Shape is not rotating

Hii, first of all try writing your code in english, its easier for people of the forum to help you.

About the question, have you tried to apply torque to the body? (https://love2d.org/wiki/Body:applyTorque) Does it rotate?

Havent used love2d's implementation of box2d so can't really say much.
by nyenye
Tue Jan 10, 2017 11:03 am
Forum: Support and Development
Topic: Mario like col problem
Replies: 10
Views: 5622

Re: Mario like col problem

Just leaving this link here: http://hc.readthedocs.io/en/latest/ It lets you create your own collision manager very easily. Needless to say that bump does more work for you, resolving overlaps automatically. That being said, I find it very usefull if you need to make triggers for events :D Good luck!