Search found 13 matches

by Brah
Sun Jan 21, 2024 11:58 pm
Forum: Support and Development
Topic: Isometric Pathfinding Bugs
Replies: 3
Views: 984

Re: Isometric Pathfinding Bugs

Yes they do. I didn't notice that
by Brah
Sun Jan 21, 2024 8:31 am
Forum: Support and Development
Topic: Isometric Pathfinding Bugs
Replies: 3
Views: 984

Re: Isometric Pathfinding Bugs

I solved the first problem by using math.floor. Would still like to know why Jumper doesn't want to use the tiled map table as it's grid.
by Brah
Sun Jan 21, 2024 8:05 am
Forum: Support and Development
Topic: Isometric Pathfinding Bugs
Replies: 3
Views: 984

Isometric Pathfinding Bugs

I have encountered two bugs using the Simple Tiled Implementation and the Jumper pathfinding library when using an isometric map. The first one is that only valid grid coordinates that I can move to when clicking on the map are 9,9. Everything else gives me: Error jumper/pathfinder.lua:331: Invalid ...
by Brah
Wed Jan 03, 2024 11:40 am
Forum: Support and Development
Topic: How to path around blocked tiles with jumper?
Replies: 12
Views: 85170

Re: How to path around blocked tiles with jumper?

Either Dijkstra, Breadth First Search or Flood Fill. I have no idea which one to use
by Brah
Wed Jan 03, 2024 10:24 am
Forum: Support and Development
Topic: How to path around blocked tiles with jumper?
Replies: 12
Views: 85170

Re: How to path around blocked tiles with jumper?

Check this: https://github.com/Yonaba/Jumper/tree/master/jumper/search and maybe update your code to this version. I tried using that version of Jumper and it causes my games to crash. I think I have an older version of jumper because I don't have THETASTAR and my getPath coordinates are X,Y... Do ...
by Brah
Wed Jan 03, 2024 8:02 am
Forum: Support and Development
Topic: How to path around blocked tiles with jumper?
Replies: 12
Views: 85170

Re: How to path around blocked tiles with jumper?

I think I have an older version of jumper because I don't have THETASTAR and my getPath coordinates are X,Y...
Do you have any stuff on weighted grids and movement costs?
by Brah
Mon Jan 01, 2024 3:52 am
Forum: Support and Development
Topic: How to path around blocked tiles with jumper?
Replies: 12
Views: 85170

Re: How to path around blocked tiles with jumper?

I figured out this problem by myself but I have another another question. How do I write a walkable tile function for jumper?
by Brah
Sun Dec 31, 2023 4:06 am
Forum: Support and Development
Topic: How to path around blocked tiles with jumper?
Replies: 12
Views: 85170

How to path around blocked tiles with jumper?

I'm using jumper for pathfinding and was wondering how to get the algorithm to take into account tiles blocked by enemies and other objects when finding a path.
by Brah
Sun Oct 30, 2022 10:52 am
Forum: Support and Development
Topic: How to teleport?
Replies: 2
Views: 3254

Re: How to teleport?

Thanks for the idea! This fixed it

Code: Select all

function player:keypressed(k)
    if k == "space" then
        self.body:setPosition(mouse_x, mouse_y)
        print("teleport")
    end
end