Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs

Bitsy Game Maker

Make little games, worlds, and stories! · By Adam Le Doux

Can items "remain" after you've interacted with them?

A topic by Daniel Green created 15 days ago Views: 78 Replies: 5
Viewing posts 1 to 4

Hello there,

I am working on a project that involves players interacting with many pieces of text, triggered by interacting with items. I would really like for the items to remain after the player interacts with them, but can't seem to work out how to do this.

I know it's possible for items/sprites to change state rather than simply disappear (see https://cephalopodunk.itch.io/bedtime-kitties), but I want the same text to trigger each time the player touches it, rather than move to an "after" state once triggered. Is this possible?

Many thanks!

You could try the permanent items hack? https://github.com/seleb/bitsy-hacks/blob/master/dist/permanent-items.js

I've never used it myself but it's aim is to make items remain after they're interacted at with. 

Alternatively,  depending on what you hope to achieve, what you could do is have an invisible item infront of a sprite that reads out the text you want initially triggered and then after that all that's left is the sprite which will say whatever you want it to say afterwards. 

The transparent sprites hack would help if you took that route. 

https://github.com/seleb/bitsy-hacks/blob/master/dist/transparent-sprites.js

Hope either of these methods are useful! Good luck dude!

Awesome. Thanks so much for this! I'll give it a shot and report back with how it goes.

Incidentally, the sprites in Bedtime Kitties don't really change state - they are actually items (with the dialog attached) which when 'picked up' show the underlying cat tile. (If you could see you inventory it would be full of cats by the end!)

I'm sure there's a hack way to do real state changes - check out Borksy (https://ayolland.itch.io/borksy) for lots of Bitsy hacks in the same place.

I tend to just use a sprite when I want an un-pick-up-able item but I'm not sure that works for your exact use case. If you're new to Bitsy dialogs, you might find something useful in my mini-tutorial here: time-for-some-rambling

Here's to such an awesome community.

Agreed. <3