Thanks for the response nimos.
I have been trying to do it like u said, but i can not figure it out.
Here is what i did :
I have made 1 imagepoint at the scrolling tree and called it "Imagepoint1".
When i go to the event sheet, and i want to create a coconut every 3 seconds i am letting it spawn on Layer 0 (that is where my game is)
On X and Y i am placing the code u provided like so :
X : GameBoom.ImagepointX(Int(Random(1)+1))
Y : GameBoom.ImagepointY(Int(Random(1)+1))
When i run the game i dont see any coconut spawning from the tree.
Do i have the code implemented on a wrong way ?
Thanks in advance!!