Thanks for all the replies.
I determined it has something to do with the eBlock parameter.
The logic which I am trying to follow is as below:
Character needs to pick up a stick at located (x0,y0)
Stick becomes invisible once character picked it up
Character needs to throw stick at an apple in a tree
When you carry out the instruction "use stick with apple in tree" the character will move to location (x1,y1)
To make the animation of the stick moving from the character into the tree, the stick needs to move from location (x0,y0) to location (x1,y1) while being invisible.
Then the stick will become visible at (x1,y1) and move to (x2,y2) which will make it seem as if the character is throwing the stick into the tree.
The Alternative of moving an invisible item is to probably add a duplicate item at the position you wish for the animation to take place and just keep it invisible until you need it.
The Better alternative is to change the x & y coordinates of the object as CassieBSG rightfully said. The tutorial also recommends doing this.
I determined it has something to do with the eBlock parameter.
The logic which I am trying to follow is as below:
Character needs to pick up a stick at located (x0,y0)
Stick becomes invisible once character picked it up
Character needs to throw stick at an apple in a tree
When you carry out the instruction "use stick with apple in tree" the character will move to location (x1,y1)
To make the animation of the stick moving from the character into the tree, the stick needs to move from location (x0,y0) to location (x1,y1) while being invisible.
Then the stick will become visible at (x1,y1) and move to (x2,y2) which will make it seem as if the character is throwing the stick into the tree.
The Alternative of moving an invisible item is to probably add a duplicate item at the position you wish for the animation to take place and just keep it invisible until you need it.
The Better alternative is to change the x & y coordinates of the object as CassieBSG rightfully said. The tutorial also recommends doing this.