If the statements and vars help please: o

OK so I used to do Flash so I know with JQuery, its kind of the same thing with a few differences so ill explain what I intend to do so in more than a put actionscript in place...

I intend to make a small game for my Gf sister (she still believes in Santa)

Here's what I need to do to

So patients have a var called Points in the loan of the model:

Var points = 0;

Then it will be a click function allows so say I have a DIV called Santa and he is clicked I want to do this:

var Points = + 1; If we add 1

then sym.$("Santa").hide ();

next would be the If statement

Something like this:

If (Points = 3)

{

Do something

}

How I would go to this topic in Edge/Jquery? My jquery code know how sucks

Thanks in advance for any help.

Hello.

First of all, you must initialize your variable.

Then you must increment.

You can add your conditional statements.

Depending on what you want to do and use, this should be simple.

Do you use symbols? What does Santa do?

Here's how it could be done

var i = 0;

{sym.$('Santa'). Click (Function ()})

i ++ ;

If (I == 3) {}

something here

}

If (I == 10) {}

something here

}

});

Tags: Edge Animate

Similar Questions

Maybe you are looking for