The Point Towards block has should have a Random Direction option in the dropdown.

This would pick a random number between -180 and 180 and point in that direction. There is currently a dropdown in the "point towards" block that I think would be a good place to put this option.
Shouldn't that be point towards random sprite? Or an option in point in direction?
Why would you want to do this?
@kyleplo do you mean point to a random sprite? Or on the point in direction block?
@BryceLTaylor Can you please clarify / provide a sufficient description? I'd like to open this up as "help wanted".
@hedgehog125 Both.
I have updated the issue above.
I meant point in a random direction, not towards a random sprite. Let me know if you need more information!
What about something like this?


It would be better to put it in a dropdown. I think that what you've shown above will be slightly confusing since it mixes a field where only numbers are valid and a word.
.
It will be similar to "go to random position."
Also, the block should pick a new direction every time it runs.
Wording nitpick: I'd say "random direction" would be better than "random position". "point towards random direction" seems more logical than "point towards random position".
@kenny2github Agreed. @BryceLTaylor can you update the spec?
"Point towards random direction"? Surely it's "Point in random
direction"? :)
On 4 April 2018 at 16:01, Ken notifications@github.com wrote:
Wording nitpick: I'd say "random direction" would be better than "random
position". "point towards random direction" seems more logical than "point
towards random position".—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/LLK/scratch-gui/issues/1702#issuecomment-378632265,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGbNvhauHJf2vVckNfLnAiAa87TkBob-ks5tlOBjgaJpZM4TCJP4
.
@griffpatch We aren't going to mutate the block based on the menu drop-down. Because "pointer" is the default I recommend we keep it as-is. This thread is confusing enough as-is. 😉
Face Palm... Of course :)
On Mon, 9 Apr 2018, 13:50 Andrew Sliwinski, notifications@github.com
wrote:
@griffpatch https://github.com/griffpatch We aren't going to mutate the
block based on the menu drop-down. Because "pointer" is the default I
recommend we keep it as-is.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/LLK/scratch-gui/issues/1702#issuecomment-379740506,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGbNvn575dvLzyLMxDYkYN99BJRNpdWJks5tm1kwgaJpZM4TCJP4
.
Sorry, I typed the wrong thing in the image above.

Also it should be in the same font as the existing text.
Is this also going to require a change to code in the scratch-vm repo? I don't see any code in the gui repo that would implement the behavior for this random direction option.
@bartljak Yes. This will require work in both the blocks and the VM. You may want to wait a week or so as we'll be consolidating both block rendering and the VM opcode definitions completely into the VM.
@thisandagain Ok good to know. In the mean time I think I have created a fix but I'm not really familiar with testing the VM code on my own machine...
Is there any way for me to run the gui code off of my local vm directory instead of it pulling the code from the public VM repo?
You can already do this by using the "point in direction" and "pick random" blocks:

Is it worth adding this into "point towards" as well?
@ianobermiller good question. Probably worth considering that there's already "go to (random position)", which is equal to "go to x: (pick random -240 to 240) y: (pick random -180 to 180)".
Most helpful comment
What about something like this?

