Skip to content

Video motion value for sprite is always zero until the sprite is interacted #2541

Closed
@apple502j

Description

@apple502j

Expected Behavior

As long as the user accepts video, video motion value is set correctly.

Actual Behavior

Until the sprite is interacted, motion for the sprite is always 0 and direction is always -1. Values for stage are correct. There is no error on console.

"Interacting" includes:

  • dragging, either on editor or on player (by set drag mode)
  • clicking the sprite
  • using say block, think block or ask block
  • changing sprite selection from other sprite to the sprite
  • using touching color/object block
  • stamping

"Interacting" does not include:

  • changing x/y
  • changing direction
  • changing draggability
  • changing rotation style
  • changing costume
  • changing size
  • changing graphic effect
  • show/hide
  • changing layer
  • changing video transparency
  • switching video on/off/flipped
  • using pen extension (except stamp)

Steps to Reproduce

  1. Make a project using "when video motion > 0" block
  2. Save and reload
  3. Allow video permission
  4. Dance (script not executed)
  5. Interact with the sprite (script get executed)

Operating System and Browser

Firefox 79 Windows 10

original repro by Blue_Science: My browser / operating system: Ubuntu Linux, Firefox 79.0, Flash 32.0 (release 0)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions