MODULE: GotThere 0.5

Started by Khris, Wed 03/01/2024 08:46:42

Previous topic - Next topic

Khris

In a basic BASS / Sierra game, start a non-blocking walk toward something when interacting with it that can be canceled by the player at any time.

Download: GotThere.scm

The module provides a single function:

bool WalkFace(int x, int y, CharacterDirection dir)

Use it like this:
Code: ags
function hSomeHotspot_Interact() {
  if (WalkFace(123, 45, eDirectionLeft)) {
    // what happens when the player reaches those coordinates goes in here
  }
}

cat

A few caveats for people who want to use this module:


SMF spam blocked by CleanTalk