Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles

Bitsy Game Maker

Make little games, worlds, and stories! (No coding required.) · By Adam Le Doux

How do I...

A topic by Minty created May 26, 2018 Views: 294 Replies: 8
Viewing posts 1 to 3

I have a game where I want a character to give you something if you have something else.

Example: You have a cookie. Other character wants it for ball. You give them cookie, you get ball.

You will be able to do this with variables.
In your  dialogue you could have a conditional node on the sprite that want's to trade the ball for the cookie and have 3 conditions that would look something like this: (b for ball - c for cookie. Makes sense right? Though you can use any letters you want)

  

Now in order to get the cookie in the first place you would need pick up a cookie. So in the dialogue for the cookie you should add {c=c+1} to the end of it so the player actually has a cookie to trade. 


Here's a copy of the game I made for this explanations. Feel free to have a dig.
Here's an in depth tutorial on bitsy variables

Hope this helps! 

How do I pick up a key that unlocks a door?

Try variables or since you can't VISUALLY see your inventory make the door give you an item but don't show dialog that you did or use a variable to change where an exit goes. I'm not saying it will work but it mght.

Using variables is not the problem. what is the command to deleted the locked door?

Did you figure this out Scotty? I am trying to do something similar.

Not yet sadly...

One of my students emailed me this:  "You can also use the exit from dialogue hack, and have conditional dialogue on the door which will exit the player to the next room if they have met certain conditions (found the key, have enough coins to pay for entry, have spoken to the right NPC etc). (See the ‘Tools and resources’ section for more information about hacks)."

But, still trying to sort it out

Yea I can't wrap my head around that hack. I need a step by step guide.. BUT I did figure a kind of work around that I posted after I asked you.  It's here - https://drdom.itch.io/micopocalypse/devlog/56540/key-and-door-workaround-in-bits... It isn't pretty.  But it kind of works..