Complete noob, using Walker Boys tutorial need a little help please.

Hello everyone, complete newbie at this and have been following the Walker Boys Unity Game Development course (I have no background in programming or graphics of any kind but this is something I have always wanted to do.

I have got to the point where I have created an animation of a cube primitive moving a few grid squares that has an audio event tied to it ( YEY ME! :mrgreen: ). In the tutorial they also attach a particle effect to the animation in a separate event. Using the java script below:

function PlayParticle (par : GameObject)
{
instantiate (par,transform.position, transform.rotation);
}

However when I try to attach this function to my event it does not appear and I get this error : Assets/Scripts/eventscript.js(21,9): BCE0005: Unknown identifier: ‘instantiate’.

What gives? it seems to work for them!

Many thanks for your help in advance.

You haven’t spelled “Instantiate” correctly (with uppercase). Please use code tags when posting code, and duplicate topics aren’t allowed.

–Eric

Wow I made a great start considering it was my first post… :stuck_out_tongue: Boy do I feel stupid thank you for pointing out my silly mistake.