Discuss Scratch

popper12
Scratcher
100+ posts

Anyone know how to make a "Doors and Keys" feature?

I'm using it for a game, and I was seeing if anyone could share their knowledge, save me some time.
stickfiregames
Scratcher
1000+ posts

Anyone know how to make a "Doors and Keys" feature?

Make a list for all the keys that the player has picked up.

Each key and each door must have a number.
When they pick up a key, just
addkeynumbertokeys
To open a door, use
ifkeyscontainsdoornumber?thenopendoorelsedon'topendoor
Airhogdog
Scratcher
37 posts

Anyone know how to make a "Doors and Keys" feature?

whenclickedforeveriftouchingkey1?thensetkey1to1

whenclickedforeveriftouchingdoor1?andkey1=1thenchangex/ybywhateveryouneedtodotogetbythedoorend
bwahman64
Scratcher
66 posts

Anyone know how to make a "Doors and Keys" feature?

how can i make a grey block?
asivi
Scratcher
1000+ posts

Anyone know how to make a "Doors and Keys" feature?

bwahman64 wrote:

how can i make a grey block?
Pleasedon´tSPAMorNECROPOST
LilPikachu08
Scratcher
69 posts

Anyone know how to make a "Doors and Keys" feature?

whenclickedswitchcostumetoclosed doorforeverifkeyany keypressed?thenswitchcostumetoopen door
this is how to do this if you don't want to use a key sprite
LilPikachu08
Scratcher
69 posts

Anyone know how to make a "Doors and Keys" feature?

whenclickedforeverifkeyup arrowpressed?thenswitchcostumetoopenifkeydown arrowpressed?thenswitchcostumetoclosed
vdnt
Scratcher
17 posts

Anyone know how to make a "Doors and Keys" feature?

There is no need to get that confused for grey block
Here is the script
whenclickediftouching key?thenchange key by1iftouching door?thenifkey=1 thensayYou have successfully opened the doorfor2secsifkey=0 thensayFirst get the keyfor2secs

OneBeast404
New Scratcher
11 posts

Anyone know how to make a "Doors and Keys" feature?

vdnt wrote:

There is no need to get that confused for grey block
Here is the script
whenclickediftouching key?thenchange key by1iftouching door?thenifkey=1 thensayYou have successfully opened the doorfor2secsifkey=0 thensayFirst get the keyfor2secs

For which sprite? The key or the door? Both?
Specter22
Scratcher
100+ posts

Anyone know how to make a "Doors and Keys" feature?

This project should have everything you need https://scratch.mit.edu/projects/21899025/ great tutorial.
Beagel
Scratcher
100+ posts

Anyone know how to make a "Doors and Keys" feature?

Hi everyone, there seems to be a lot of necropost on here. This question has already been answered, so please stop spamming. Have a good day.
Superarmsman
Scratcher
15 posts

Anyone know how to make a "Doors and Keys" feature?

This is for the door.
iftouchingkey?thennextcostume
Superarmsman
Scratcher
15 posts

Anyone know how to make a "Doors and Keys" feature?

deck26
Scratcher
1000+ posts

Anyone know how to make a "Doors and Keys" feature?

Superarmsman wrote:

This is for the door.
iftouchingkey?thennextcostume
Please check the date before posting - this topic is old.
FateSealer
Scratcher
100+ posts

Anyone know how to make a "Doors and Keys" feature?

My project uses doors and keys (a dungeon game). There are two keys, and two doors (yellow and blue).

https://scratch.mit.edu/projects/317120953/

deck26
Scratcher
1000+ posts

Anyone know how to make a "Doors and Keys" feature?

FateSealer wrote:

My project uses doors and keys (a dungeon game). There are two keys, and two doors (yellow and blue).

https://scratch.mit.edu/projects/317120953/

Please check the date before posting - this topic is old.
Djackson2020
New Scratcher
1 post

Anyone know how to make a "Doors and Keys" feature?

Beans
Fine_and_Toasted
Scratcher
3 posts

Anyone know how to make a "Doors and Keys" feature?

Any one Know how to make a portal to next backdrop?
Some of my code isn't working and i would like to make a portal in a competition
joshuaho
Scratcher
1000+ posts

Anyone know how to make a "Doors and Keys" feature?

Fine_and_Toasted wrote:

Any one Know how to make a portal to next backdrop?
Some of my code isn't working and i would like to make a portal in a competition
Hi, and welcome to the Scratch forums!

I would suggest making a new topic for that rather than posting on someone else's thread. That makes it easier for others to find your question. It would also be a good idea to share your project and include a link to it so others will be able to better see what's going on.

Last edited by joshuaho (June 10, 2020 18:08:14)

Powered by DjangoBB