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

can't figure out variables

A topic by abalonetea created 6 days ago Views: 32 Replies: 2
Viewing posts 1 to 3

hi guys! i've been playing around with bitsy for about a month. ive even made two games with it that i'm pretty proud of! but there is something i haven't been able to figure out, and i don't see it covered in the tutorials here or elsewhere that i've looked.

i see some games where after doing something, an item will change somewhere in the game. get into the bed, and a crop "grows". find a shovel, and there's a "plot" to dig. speak to someone, and an item appears in a house.

i understand that it has to do with the variables tool but, for the life of me, i can't figure out how to make it work?

i looked over the boards here, too. i know there is one post on variables, but it didn't help much. i dont' particularly understand how to assign things to the variables. in the a =/= ? section, that is. how do i make that a cause what i'm trying to accomplish? i only want something simple. i would like a tile to change/acquire an item when something else is done.

what would be the best way to do this? 

thank you!

Using the basic version of Bitsy, the only thing you can do with variables is trigger some dialog. 

In the "dialog" pane you can choose "conditional" and set a condition there, so when that condition is met, a certain dialog will show. 

If you want more things to happen, I think the easiest way is to use Borksy to apply hacks to your game. Have a look in particular at Exit from dialog and End from dialog. 

Let's say you want to have a plot appear when you find the shovel. If you apply "Exit from dialog" you can add dialog to the item shovel (it will look something like (exit "room2, 0,0") and once your avatar interacts with the item, it will be transferred to room2  (in this case, in the top left corner) which will be exactly like the room you came from, but with the plot diggable.

Let's say that you want the plot to appear once you have the shovel, and you talk to someone. Add conditional dialog to that someone's sprite, if itemShovel==1 then (exit "room2, 0,0") will transfer the avatar to the room with the diggable plot, if itemShovel==0 you could have it say something like "go look for a shovel, you'll need it!" or something.

Hope this makes sense!

THANK YOU SO MUCH!!!!! this is a huge help! i didn't realize borksy existed, so i'll spend the evening learning to use it! c: