OccupyTile where player entity moves

Post your help queries and engine programming questions here

OccupyTile where player entity moves

Postby drizzt82 » Mon May 12, 2014 9:54 am

Hi there,

I'm working on a mulitplayer iso game. I would like to make sure the tile on which a player is currently moving is occupied.
Is there a sever event firing when a player moves on a tile so I can change the status of a tile to occupied?
Any suggestions?

Thanks in advance!
Posts: 9
Joined: Thu Apr 24, 2014 8:11 am

Re: OccupyTile where player entity moves

Postby robaldred » Mon May 12, 2014 2:25 pm

It's easy enough.
When you start pathing, unoccupy the current tile.
When the pathing completes, occupy the new tile

Code: Select all
# coffeescript
      this._path_start_listener = this.path.on 'pathStart', =>

      this._path_complete_listener = this.path.on 'pathComplete', =>

It's a little more complicated and resource intensive and error prone if you want to occupy the tile on every single point that's being traversed, I wouldn't recommend doing this. Hopefully the behaviour in my example is sufficient.
I don't work for Irrelon. All comments are my own.
I would strongly encourage anyone building production projects with Isogenic to buy a premium licence, it costs very little and will help towards continued development of the engine. Irrelon have spent thousands of hours developing this wonderful platform with many features found in AAA game engine.
User avatar
Posts: 243
Joined: Wed Oct 23, 2013 8:09 pm
Location: Manchester, England

Return to Help & Questions

Who is online

Users browsing this forum: No registered users and 1 guest