imagicbell / ublockly

reimplementation of google blockly for Unity
http://imagicbell.github.io/unity/2017/10/11/blockly-one.html
Apache License 2.0
138 stars 52 forks source link

Next statement without a previous statement #40

Closed anmartan closed 2 years ago

anmartan commented 2 years ago

Recently, I've been trying to implement a "start" block, so that the interpreter only reads the code that's hanging from this block. However, I found myself unable to do it: whether it is a mistake of mine, or a bug, I don't know although I believe it is the later.

When trying to write the .json file that describes the block structure, I noticed that I can add a "previousStatement" to a block, which adds a link to the block, so that it can be connected to others, or even a "previousStatement" and a "nextStatement", as in the pictures below:

image image

image image

Yet, when I try to add only a "nextStatement" (which is what the Start block should have), the result isn't the expected:

image image

imagicbell commented 2 years ago

This commit 49c99a8d9d489b506ea352d22bde6ce25e798487 might fix your problem.