Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Path Finding

DerVVulfman":3eay8rxq said:
You need to determine 'where' that event is on the map... a separate system altogether.

It goes to locations, not events.  Sorry.

Can't you just go to the event's location then? Something like:
Code:
x = $game_map.events[3].x
y = $game_map.events[3].y
$path_finding.setup_event(4, true)
$path_finding.add_paths_event(4, x, y, true)
$path_finding.start_event(4)

Or something to that effect. Of course, if the target event moves you'll have to recalculate the path to it or come up with a system to cope with that problem, but it's not so hard.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top