Jump to content

I b trippin


Botre

Recommended Posts

What are you using it for anyway? happy.png

 

Area.getRandomPosition() currently returns a random tile without accounting for its collision flag, which an be a huge ballache in certain situations :p 

 

3316d6f60f229da038c4b8a06dcde3fc.png

 

Will probably make a getClosestPosition() as well, but still testing some stoof (hence the tile painting for debugging)

 

The room detection is mainly to check if you are in the same room as an entity, and if not it will look for an obstacle to handle to get access to that room ^^

Link to comment
Share on other sites

Well with web walking you wouldn't need map data as all the nodes are predefined with their own edges. This would be more of a global pathfinder to construct a path from point A to B using (obviously) the collision flags.

 

What did u mean by "all" mapdata then ? ph34r.png

Edited by Botrepreneur
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...