New user - "cannot read property 'wickobjects' of null


#1

Hi guys,

New wick editor user here.

I’m trying to create clones of my cursor such that they leave a trail when i move the mouse.

I’m receiving this error.

"cannot read property ‘wickobjects’ of null

Below is the code i used. Any help will be much appreciated. Thanks :)

function update()
{
createclone();
}

function createclone()
{
cclone = cursor.clone();
cclone.x = mouseX;
cclone.y = mouseY;
}