Jump to content

I b trippin


Recommended Posts

Posted

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 ^^

Posted (edited)

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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