This forum is now read-only. Please use our new forums! Go to forums

banner
Close banner
0 points
Submitted by Anna Serysheva
about 10 years

13/15 [resolved] If i move with my mouse near my name, nothing happens.

In 13/15 i have :

var orange = [40, 100, 60];
var green = [75, 100, 40];
var blue = [196, 77, 55];
var purple = [280, 50, 60];

var myName = "Anna";
letterColors = [red,orange,green,blue,purple];
if (15 > 5) {
bubbleShape = "circle";
} else {
bubbleShape = "square";
}

drawName(myName, letterColors);
bounceName();

BUt if i move with my mouse near my name, nothing happens. Why??

Answer 52ec4ed8548c35b18b000365

1 vote

Permalink

It doesn’t say for the last line, but the bouncename command should look something like this bounceName(myName)

points
Submitted by David Spain
about 10 years

2 comments

Gwenny about 10 years

“Remember that bounceName() is a function that does not take any inputs.” you should not put myName in the bounceName function. but I still don’t see what goes wrong. when insert Anna’s code everything works. maybe just refresh your browser? and i don’t know if it’s a copy&paste mistake, but your line var red is missing. it should be over var orange. if you deleted the line, it should be var red = [0, 100, 63];

Judy about 10 years

Anna’s profile has a completed “Animate Your Name” Codebit now, so I’ll mark this as resolved. – Good answer Gwenny.

Answer 54e15ff576b8fe1c5b000a67

1 vote

Permalink

var red = [0, 100, 63]; var orange = [40, 100, 60]; var green = [75, 100, 40]; var blue = [196, 77, 55]; var purple = [280, 50, 60];

var myName = “Marcellus”; if(15 > 5){ bubbleShape = “circle”; } else { bubbleShape= “square”; } letterColors = [red, blue, purple, orange, green] drawName(myName, letterColors); bounceName(myName)

points
Submitted by Marcellus May
about 9 years

Answer 54e1600976b8fe48fc000a46

0 votes

Permalink

var red = [0, 100, 63]; var orange = [40, 100, 60]; var green = [75, 100, 40]; var blue = [196, 77, 55]; var purple = [280, 50, 60];

var myName = “Marcellus”; if(15 > 5){ bubbleShape = “circle”; } else { bubbleShape= “square”; } letterColors = [red, blue, purple, orange, green] drawName(myName, letterColors); bounceName(myName)

points
Submitted by Marcellus May
about 9 years