Scratch-gui: Sprites should be added at a random x/y position

Created on 30 Dec 2017  路  6Comments  路  Source: LLK/scratch-gui

Expected Behavior

  • Adding a new sprite from the sprite library should result in the sprite being placed at a random X/Y position

Actual Behavior

  • Sprite is always added at the same position

Steps to Reproduce

  • Open sprite library
  • Add "Bat"
  • Note sprite position
  • Add "Bat" again
feature help wanted

Most helpful comment

I believe the latest update to develop implemented this feature.

All 6 comments

I know it is strange to have all sprites spawn in the same position, but what if we have like 9 positions that were chosen at random:

  • 0, 0 - center
  • 0, 90 - top
  • 0, -90 - bottom
  • 120, 0 - right
  • -120, 0 - left
  • 120, 90 - top right
  • 120, -90 - bottom right
  • -120, 90 - top left
  • -120, -90 - bottom left
    I think this would make the positions somewhat helpful, instead of totally random.

+1 to thisandagain.
Can someone check my code?

I believe the latest update to develop implemented this feature.

If I duplicate the cat this is what I get:
image
... so it seems to be working. Can you close this ticket if you agree.

Yup this has been fixed. Closing.

Was this page helpful?
0 / 5 - 0 ratings