35 reputation
27
bio website
location
age
visits member for 2 years, 7 months
seen Oct 14 '13 at 12:46

Jul
10
awarded  Notable Question
Jan
13
awarded  Notable Question
Jan
15
awarded  Popular Question
Dec
22
awarded  Popular Question
Jul
19
comment Tile engine Texture not updating when numbers in array change
It still doesn't change the texture after adding that
Jul
17
revised Tile engine Texture not updating when numbers in array change
added 535 characters in body
Jul
17
revised Tile engine Texture not updating when numbers in array change
added 535 characters in body
Jul
16
asked Tile engine Texture not updating when numbers in array change
Jul
11
comment Java - Tile engine changing number in array not changing texture
Thanks that will stop any confusion when using the array later on. Do you not have any ideas on why it is not changing the texture? Is there a way I could debug it to see why?
Jul
10
comment Java Slick2d - Mouse picking how to take into account camera
Where exactly do I use this? And every time I use a variable with coordinates do I have to subtract this from it? Can you give me an example of a variable using this
Jul
10
comment Java - Tile engine changing number in array not changing texture
So just do this map[y][x]=str_int;? Or do you mean in the for loop in the render method? Because if I do that is draws my world sideways like your second set of numbers there, but map[y][x]=str_int; renders correctly. I am already rendering every texture and they all work. I tried changing the rendering to tiles[map[x][y]].draw(xtileWidth,ytileHeight); to get rid of textureIndex but it still doesn't work. I'm not sure why the texture doesn't change
Jul
9
asked Java - Tile engine changing number in array not changing texture
Jul
9
asked Java Slick2d - Mouse picking how to take into account camera
Jul
6
comment Java - Finding distance between player and tile in array
One more quick question. I am using a camera system with graphics.translate how would I take into account the offset
Jul
6
comment Java - Finding distance between player and tile in array
Thanks! That was the problem I thought I was using the actual player position, not the position relative to the grid. That makes so much sense though I just never thought of it that way
Jul
6
accepted Java - Finding distance between player and tile in array
Jul
6
comment Java - Finding distance between player and tile in array
oh oops thanks didn't notice that +. My player position is set at the middle of the screen and updates when I move my character. It is never at 0. Unless it's always getting the distance from the very first tile
Jul
6
comment Java - Finding distance between player and tile in array
I'm a bit confused on what I should do. I can post my whole class if needed
Jul
6
revised Java - Finding distance between player and tile in array
added 604 characters in body
Jul
6
comment Java - Finding distance between player and tile in array
Looking at this it seems my math is correct, but it is getting the distance from 0,0 and not from my player position. Should I be using doubles instead of floats for all my positions? Will that fix it or is it something else. I will edit my code into main post