Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: tilemap ROW and COL returned #70

Closed
McFunkypants opened this issue Mar 5, 2013 · 0 comments
Closed

Feature request: tilemap ROW and COL returned #70

McFunkypants opened this issue Mar 5, 2013 · 0 comments

Comments

@McFunkypants
Copy link

It would be very helpful for collision detection etc if each sprite returned by the tile_map.atRect etc functions had an additional rect returned: tilemaprect. So we could know .tilemaptop, left, bottom, right, tilemapCOL, tilemapROW.

Why? I store all pickups in a platormer in the tilemap for speed (rendering AND collision). Then you hit a coin, you can't remove it from the tilemap without first CALCULATING which tilemap tile was returned via the sprite's x,y. Then you have to SEARCH the array at the tilemap[row][col][] you calculated to find the sprite in question if there are more than one. All this just to remove a coin from the tilemap.

Essentially I'd love a "this is the tilemap you hit" data to make accessing (changing) the tilemap more intuitive.

P.S. YOU ROCK! Forgive all the requests - I know you're busy. Just an idea you may want to consider for a "someday" upgrade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant