ScratchData LogoScratchData
Back to thejuki's profile

Edit Keys/buttons (Vector Portal)

THthejuki•Created June 3, 2013
Edit Keys/buttons (Vector Portal)
16
11
678 views
View on Scratch

Instructions

-Click on one of the Keys/Buttons -Click Edit Key then hit a key/button such as A on your keyboard -Click Clear Key to remove a Key/Button associated with a Movement/Action -Apply and Back are nonfunctional in this demo -Use Defaults loads a list of the default keys and replaces the user keys -Scrollbar is nonfunctional -Example pops up a sprite that can move right or left (The other controls have not been programmed for the sprite)zzaasdcxsz

Description

Here is what the Edit keys/Buttons looks like in Portal 2 (And soon will be added to Vector Portal). So Scratch does not let you add a variable in the place where you see "Key __ pressed" so this is the workaround. The coding is free to use and hopefully the example is helpful in seeing how this would work in a game. This was a lot more difficult then I originally thought...so it took awhile to make a good workaround and have a working UI to change the controls. When you make a change to a key/button, the clones are deleted and then repeated until done. The clones change their costumes and brightness based on the UI and the User Controls list. When you change a key/button, the key is replaced on the User Controls list. Song: Portal 2 Main Menu 5 http://p2music.portal2sounds.com/

Project Details

Project ID10604373
CreatedJune 3, 2013
Last ModifiedJanuary 24, 2019
SharedJune 3, 2013
Visibilityvisible
CommentsAllowed