File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -363,7 +363,9 @@ class Extension {
363363 "stretch y" ,
364364 "costume #" ,
365365 "costume name" ,
366- "visible"
366+ "visible" ,
367+ "layer" ,
368+ "volume"
367369 ]
368370 } ,
369371 targetPropertySet : {
@@ -377,7 +379,9 @@ class Extension {
377379 "stretch y" ,
378380 "costume #" ,
379381 "costume name" ,
380- "visible"
382+ "visible" ,
383+ "layer" ,
384+ "volume"
381385 ]
382386 } ,
383387 touchingObject : [
@@ -437,6 +441,8 @@ class Extension {
437441 case "costume #" : return TARGET . target . currentCostume + 1
438442 case "costume name" : return TARGET . target . getCurrentCostume ( ) . name
439443 case "visible" : return TARGET . target . visible
444+ case "layer" : return TARGET . target . getLayerOrder ( )
445+ case "volume" : return TARGET . target . volume
440446 }
441447
442448 return ""
@@ -477,6 +483,12 @@ class Extension {
477483 case "visible" :
478484 TARGET . target . setVisible ( Cast . toBoolean ( VALUE ) )
479485 break
486+ case "layer" :
487+ vm . runtime . ext_scratch3_looks . setSpriteLayer ( { NUM : VALUE } , { target : TARGET . target } )
488+ break
489+ case "volume" :
490+ vm . runtime . ext_scratch3_sound . _updateVolume ( Cast . toNumber ( VALUE ) , TARGET . target )
491+ break
480492 }
481493 }
482494
You can’t perform that action at this time.
0 commit comments