There are Two Parts for Block Coding

First Part of the Block Code
1. Go to Button 1 section
- Drag and drop a Block <When Button 1. click>

2. Go to Ball 1 Section
- Drag and drop a Block < Set Ball 1 Speed> from Ball 1 Section
- Attach it to the <Button 1. click> Block
- Drag a Numeric Block from Math Section and Fill ( speed 10) and connect both blocks as below
- Now connect this complete Block to the <Button 1.Click>

- Drag a Block <call Ball 1.Point towards> from Ball 1 Section
- Drag a Block <ImageSprite 1> from Image Sprit Section
- Connect <ImageSprite> at the place of target

Second Part of the Block Code
3. Go to Image Sprite 1 Section
- Drag a Block <When ImageSprite 1.Dragged> from ImageSprite Section for dragging Monkey
- Duplicate this Block <call Ball 1.Point towards> and connect it with <When ImageSprite 1.Dragged>
- Drag a Block <call imageSprite 1. Move to> from ImageSprite 1 Section
- Connect This complete Block to the <call Ball 1.Point towards> of <When ImageSprite 1.Dragged>

- You can Get the Blocks <get CurrentX> and <get CurrentY> from CurrentX and CurrentY Part of the <When ImageSprite 1.Dragged>