Search found 6 matches

by Nico
Thu Aug 09, 2012 2:37 pm
Forum: Support and Development
Topic: Polygon made from mouse clicks
Replies: 2
Views: 1677

Re: Polygon made from mouse clicks

Thanks you :)
by Nico
Thu Aug 09, 2012 6:13 am
Forum: Support and Development
Topic: Polygon made from mouse clicks
Replies: 2
Views: 1677

Polygon made from mouse clicks

Hello, im trying to make a polygon from the user clicks, but i cant figure out how to do it correctly. Here is what i did. function love.mousepressed(x, y, button) if button == 'l' then if(first == true) then first = false fx = x fy = y end table.insert(points,{px = x-fx,py = y-fy}) elseif button ==...
by Nico
Thu Aug 02, 2012 12:57 am
Forum: Support and Development
Topic: Objects disappearing
Replies: 2
Views: 2462

Re: Objects disappearing

The object manager creates and updates the objects. Objects sends messages between them to interact , and send information. Its an easy and simple method, so i dont see wheres is the problem, beucase its exclusive with the boxes, beucase it doesnt happend with the player. Im thinking of rewritting e...
by Nico
Wed Aug 01, 2012 9:55 pm
Forum: Support and Development
Topic: Objects disappearing
Replies: 2
Views: 2462

Objects disappearing

I have a trigger made with a sensor, a player made with a body and a sensor in feet. When the player touches the trigger , it sends a message to 3 spawners, spawning 3 boxes in the map. Its all okey, but when a box (you can spawn making click) touches the trigger, it stops drawing. The "physic&...
by Nico
Wed Aug 01, 2012 9:46 pm
Forum: Support and Development
Topic: Fixtures and masks(setMask())
Replies: 2
Views: 2045

Re: Fixtures and masks(setMask())

Thanks you, i will try it now.
by Nico
Wed Aug 01, 2012 7:24 am
Forum: Support and Development
Topic: Fixtures and masks(setMask())
Replies: 2
Views: 2045

Fixtures and masks(setMask())

Im having trouble understanding how to use fixture:setMask()
I tried putting fixture:setMask(1) to all my physics objects, but they didnt collide. Could someone explain me the correct use of it?