Discuss Scratch

GachaAlpha678
Scratcher
32 posts

How To Code Doors

Hello there!
I want to enter/exit doors by touching the door and pressing the down arrow key/s button.

Is this possible? I don't know.
Please help me.
floppa_kingT_T
Scratcher
1 post

How To Code Doors

whenclickedmove10steps
GachaAlpha678
Scratcher
32 posts

How To Code Doors

uhh what?
legendary34678
Scratcher
1000+ posts

How To Code Doors

Could you share a link to your project? Also, yes it's possible to code doors. You could have the backdrop change when you press a key while touching the door or something similar. It would help if you could explain a little more clearly how you wanted the door to work, though!
hstep60
Scratcher
37 posts

How To Code Doors

You could so something like
whenclickediftouchingPlayer?andkeyDown Arrowpressed?thenbroadcastOpen Door

Last edited by hstep60 (Aug. 22, 2022 04:25:11)

GachaAlpha678
Scratcher
32 posts

How To Code Doors

okay but how does the broadcast work??
mySTeRIOUSLY-
New Scratcher
3 posts

How To Code Doors

GachaAlpha678 wrote:

okay but how does the broadcast work??
You will need a new hat block:
whenIreceiveOpen Door
Under this, you may want to put code to start an animation of the door opening, or change a variable to show that the door is open. What specifically do you want the door to do when it opens?
legendary34678
Scratcher
1000+ posts

How To Code Doors

Yep! When a broadcast block sends out a broadcast, the backdrop and every sprite and clone will receive the broadcast and, if they have the “when I receive” hat block, they will execute the code under that block.
FFRFRFDEDED
Scratcher
1 post

How To Code Doors

ingus
minecraft1686349826
Scratcher
1 post

How To Code Doors

how do i make doors
09878901234321
Scratcher
500+ posts

How To Code Doors

minecraft1686349826 wrote:

(#10)
how do i make doors

Hello, please create your own topic instead of posting on old ones. This one isn't that old, but it's nice to keep things organized by creating your own topic.

Creating your own topic also makes sure you don't forget to follow that discussion, so you will get notifications from it, which you probably won't right now.

You can create your own topic by clicking on the “New Topic” button. You can find it on any forum's home page.
Here's what it looks like:

You can also click it directly from this post if you want.

Last edited by 09878901234321 (June 8, 2023 20:16:28)

gmodder_wheatlycrab
Scratcher
4 posts

How To Code Doors

i was here to make a code that has a answer and a non answer
deck26
Scratcher
1000+ posts

How To Code Doors

gmodder_wheatlycrab wrote:

i was here to make a code that has a answer and a non answer
Please don't necropost. If you have a question create your own topic but make it clear - your post doesn't mean much to anyone.

Powered by DjangoBB