Fixed, thank you.bartbes wrote:Using the ox and oy parameters to love.graphics.draw.
Search found 6 matches
- Sat Aug 14, 2010 12:14 pm
- Forum: Support and Development
- Topic: Those physics
- Replies: 22
- Views: 12460
Re: Those physics
- Thu Aug 12, 2010 6:51 am
- Forum: Support and Development
- Topic: Those physics
- Replies: 22
- Views: 12460
Re: Those physics
And how could i do that?bartbes wrote:Instead of correcting the x and y values, use the offsets to set the origin to center (ox and oy). (it'll fix rotation)
- Wed Aug 11, 2010 7:40 pm
- Forum: Support and Development
- Topic: Those physics
- Replies: 22
- Views: 12460
Re: Those physics
And, now i wonder how to make my own physics...
- Wed Aug 11, 2010 6:54 pm
- Forum: Support and Development
- Topic: Those physics
- Replies: 22
- Views: 12460
Re: Those physics
The problem is with assuming that :getX() returns a value that you can directly use to draw rectangles. :getX() returns the exact middle of a physics object, so to properly draw a rectangle you need to substract it's width / height to get the top left corner. Furthermore, to properly draw a rotatin...
- Wed Aug 11, 2010 6:30 pm
- Forum: Support and Development
- Topic: Those physics
- Replies: 22
- Views: 12460
Re: Those physics
I don't actually understand why they can coexist with each other, map is design is made of tiles, and invisible stationary physics blocks as non collide-able platform.
- Wed Aug 11, 2010 6:08 pm
- Forum: Support and Development
- Topic: Those physics
- Replies: 22
- Views: 12460
Those physics
Hello, i have been messing with this awesome system. Apparently for some reason i cant get physics work properly. tile = {} tile_s = 24 map= { {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,...