Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

bitsy

a little engine for little games, worlds, and stories · By adam le doux

How to make follower follow the avatar after a spesific level/instance?

A topic by Eleninja created May 05, 2024 Views: 231 Replies: 1
Viewing posts 1 to 2

Hello there, I am making a game and i am utilizing the follower bitsy hack. The thing is, i open the game and the follower i want just spawns next to the player and starts following them. What i want, is when the player goes up the that spesific sprite and talks to them, THEN they start following the player. How do i achieve that?

(1 edit)

Open .HTML file.
Find this in your code:

after('loadWorldFromGameData', function () {

    hackOptions.followers.forEach(setFollower); // <-- COMMENT THIS LINE

Then do this:

Let's say you want "cat" (sprite) to be your follower. 

In the cat's dialog (DLG n), add the tag: I'm a cat! I'll follow you now. (follower "cat")

The cat will now follow you.

The (follower "name") tag acts as a toggle. Calling it once starts the following; calling it again with the same name will make the sprite stop following you.

I haven't checked how followers work with exits and different rooms, though