Comments (2)
Reproduced it. The block is actually more complicated than I thought, as you can switch the default key menu for something like a variable that contains the key to be pressed:
In our intermediate representation, this is how it looks:
"opcode": "sensing_keypressed",
"params": {
"KEY_OPTION": {
"opcode": "sensing_keyoptions",
"params": {
"KEY_OPTION": "\"a\""
},
}
Compared to "when key is pressed (hat block)":
"opcode": "event_whenkeypressed",
"params": {
"KEY_OPTION": "\"space\""
},
from pystage.
This affects other blocks as well, such as "distance to...". They contain sensing blocks that are not available outside these blocks, but can be replaced. So the easiest solution seems to be to implement these blocks so that PyStage knows about them.
from pystage.
Related Issues (20)
- Translate eror
- NameError: name 'self' is not defined
- Error says can;t find file HOT 1
- How to Make My Scratch Project Work: Seeking Assistance with Image and Audio Addressing
- Error in code generation
- I have a porblem with export.
- NameError: name 'self' is not defined when converted Greeting_Card.sb3
- Touching Objects
- Variable syntax is not recognized HOT 4
- Sensing touching does not have a API for converting HOT 2
- Clones missing HOT 4
- Comments on blocks are not in the converted code
- A hat block with nothing attached causes bad output in the python file
- Conversion script generates: NO API method for func.opcode incorrectly.
- repeat block with no contents generates bad output
- uninitialized if block generates bad output
- Think/say for seconds
- Some nested blocks of ___ of __ block, e.g. tan of 90 not work well. HOT 1
- I cant load pystage HOT 5
- Sound Problem HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pystage.