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

Need help with sprite and items

A topic by Vampire07 created 13 days ago Views: 65 Replies: 1
Viewing posts 1 to 2
(1 edit)

Hi. I need help with my sprite. I have 8 sprites that each give you an item and I'm trying to make it so that if you have an item from one of the sprites, you cannot get another one from the others till you either used it or throw it away.  I have tried using branching but it doesn't work kind of, and I'm having a really hard time. So if anyone has any helpful tips on how i can fix that, that would be wonderful.

Have you tried making the item add to a variable? Then you can have the sprites check if item = 0, they give the item, else they do not. You would just need to make sure that using or throwing the item away set the variable to 0.