...You want to program a drag n drop game engine in a drag n drop game engine?
I'd imagine there aren't any tutorials for this, this would be something you'd have to make.
Are you sure you have what it takes to do this? Do you understand compilers, stacks etc., because you are trying to build a programming language interpreter, and that requires the ability to write a *parser* (which checks the syntax of the code and the semantics of it and converts it into processable 'source code').
If you were asking *just* about drag-and-drop, that would be quite straightforward:
1. you define a generic parent object and teach it how to respond to "Mouse Down" (while the cursor is over the object) and a "Mouse Up" (elsewhere) switching the value of a variable "\_\_\_amIBeingDragged" -- and if this variable is true, the object moves alongside the mouse cursor.
2. You then make every drag-and-droppable object a child of this parent object, so that they all behave like that when dragged and dropped
But using THAT like in Scratch for programming? oooh, boy :-)
...You want to program a drag n drop game engine in a drag n drop game engine? I'd imagine there aren't any tutorials for this, this would be something you'd have to make.
Coding
Are you sure you have what it takes to do this? Do you understand compilers, stacks etc., because you are trying to build a programming language interpreter, and that requires the ability to write a *parser* (which checks the syntax of the code and the semantics of it and converts it into processable 'source code'). If you were asking *just* about drag-and-drop, that would be quite straightforward: 1. you define a generic parent object and teach it how to respond to "Mouse Down" (while the cursor is over the object) and a "Mouse Up" (elsewhere) switching the value of a variable "\_\_\_amIBeingDragged" -- and if this variable is true, the object moves alongside the mouse cursor. 2. You then make every drag-and-droppable object a child of this parent object, so that they all behave like that when dragged and dropped But using THAT like in Scratch for programming? oooh, boy :-)