microsoft / pxt-arcade

Arcade game editor based on Microsoft MakeCode
https://arcade.makecode.com
MIT License
478 stars 206 forks source link

multiplayer: sprite assignment, create sprite block shadow not draggable #5597

Open eanders-ms opened 1 year ago

eanders-ms commented 1 year ago

image

//% duplicateShadowOnDrag doesn't seem to work...

abchatra commented 1 year ago

@riknoll @jwunderl any ideas?

jwunderl commented 1 year ago

Hm duplicateShadowOnDrag wouldn't work as it should be set on the block that is a field rather than the parent block (it'd have to be part of spritescreate definition, not defined in set player sprite), but can we just set it as a default instead of a shadow if that's what we want? e.g.

    //% block="set $player sprite to $sprite"
    //% player.shadow=mp_playerSelector
    //% sprite.defl=spritescreate

I don't know if it duplicating is what we would expect when dragging a normal block vs just a image / etc value - at most I would expect it to drag out

edit: hm not sure off the top of my why but that doesn't work