GSE-CCL / getting-unstuck-web

The Getting Unstuck web app from 2020.
https://gettingunstuck.gse.harvard.edu
MIT License
2 stars 0 forks source link

"key" scratch block not visible? #165

Closed paulinahaduong closed 4 years ago

paulinahaduong commented 4 years ago
Screenshot 2020-07-07 11 47 01 Screenshot 2020-07-07 12 14 44

"forever if <key (down arrow v) pressed?> then change y by (-10)" <-- this isn't rendering on the studio page?

paulinahaduong commented 4 years ago
Screenshot 2020-07-07 12 17 07

the fact that "key" highlights in yellow makes me think that it's being read as some other kind of tag?

jsarchibald commented 4 years ago

Hmmm... I don't think is valid scratchblocks; I think it looks for the full statement Have you tried: <key [ v] pressed?>

jsarchibald commented 4 years ago

[sb]key [ v] pressed?[/sb] seems to work here where <key > is

paulinahaduong commented 4 years ago

That worked! but not when I wanted to create a stack...

<code class="_sb">forever if key (down arrow) pressed? then change y by (-10)</code>

Screenshot 2020-07-07 13 31 06
jsarchibald commented 4 years ago

Found this to work (using HTML codes for <>:

[_sb]forever 
if &lt;key [down arrow v] pressed?&gt; then
 change y by (-10)[/_sb]

Also added [_sb] which will do a stack, as opposed to inline [sb]

paulinahaduong commented 4 years ago

Amazing, thank you!!!

paulinahaduong commented 4 years ago

Also you're a genius - I should've thought of that!

jsarchibald commented 4 years ago

Marking this as closed since I think it was resolved!