Search found 151 matches

by Bindie
Sat Feb 28, 2015 12:17 pm
Forum: Support and Development
Topic: How to use bump.lua
Replies: 50
Views: 31257

Re: How to use bump.lua

You understand me clearly. When I draw my player with offset x and y to be able to rotate it from the center (and using the collision code as it is): love.graphics.draw(player.img, player.x+player.w/2, player.y+player.h/2, player.angle,1,1,player.w/2,player.h/2) However, when I draw it without the o...
by Bindie
Fri Feb 27, 2015 9:39 pm
Forum: Support and Development
Topic: How to use bump.lua
Replies: 50
Views: 31257

Re: How to use bump.lua

I solved it. If I add half the width to every player.x and half the height to every player.y I can draw the player inside the rectangle while it can still rotate from the middle. Adding half the width and half the height to every player.x and every player.y, is it really necessary to do it so compli...
by Bindie
Fri Feb 27, 2015 4:13 pm
Forum: Support and Development
Topic: How to use bump.lua
Replies: 50
Views: 31257

Re: How to use bump.lua

Hey, my player.x and player.y are in the middle of the player. So when I add the rectangle to bump.lua, it draws it from the middle instead from the top left corner of the image. Here comes the concrete question: Is it possible to use bump.lua and have a rectangle around the player while still rotat...
by Bindie
Mon Feb 09, 2015 7:29 pm
Forum: Support and Development
Topic: How to use bump.lua
Replies: 50
Views: 31257

Re: How to use bump.lua

Awesome, thanks.
by Bindie
Mon Feb 09, 2015 6:04 pm
Forum: Support and Development
Topic: How to use bump.lua
Replies: 50
Views: 31257

Re: How to use bump.lua

So how do I account for width and height?

Say I draw with an offset to make character centered, how does this translate into bump and where should I put the new x and y values with offset?
by Bindie
Sat Feb 07, 2015 8:48 pm
Forum: Support and Development
Topic: How to use bump.lua
Replies: 50
Views: 31257

Re: How to use bump.lua

Sure, It seems my character tile overlaps with all other tiles in the positive y axis and x axis.
by Bindie
Fri Feb 06, 2015 9:20 pm
Forum: General
Topic: Proximity Detection of an Obejct
Replies: 2
Views: 2567

Re: Proximity Detection of an Obejct

If I understand you correct I guess you want to know how to detect the closest tree regarding to the player: I would do a for loop over all trees that are within a special x and y from the player like an area of 20? And then store a length of a vector from the player.x and player.y to the tree.x and...
by Bindie
Fri Feb 06, 2015 8:53 pm
Forum: Support and Development
Topic: How to use bump.lua
Replies: 50
Views: 31257

Re: How to use bump.lua

A bit more specific: If I have offset when drawing my player character, do I have to take this into account when adding the tile to a world in bump.lua? My character bumps nicely into positive x- and y-axis but when I go into the negative x- and y-axis the tile overlaps with the map-tiles. That's th...
by Bindie
Fri Feb 06, 2015 5:40 pm
Forum: Support and Development
Topic: Pls help me with this code :(
Replies: 1
Views: 953

Re: Pls help me with this code :(

Hey, I think maybe it's that if you change location to something else than map I at least see a lot of white blocks spawned in the top.
by Bindie
Fri Feb 06, 2015 5:15 pm
Forum: Support and Development
Topic: How to use bump.lua
Replies: 50
Views: 31257

Re: How to use bump.lua

I admire bump.lua, simple and super. I have a little width and height trouble with my character. He is a box of 54x54 pixels, however there is a border in front of him and he can move into tiles, is there an easy way to correct this? I have attached the character and main.lua. I know the character i...