This forum is now read-only. Please use our new forums at discuss.codecademy.com.

Animate Your Name Forum

View Course » View Exercise

64 points
Picture
Submitted by
Anna Serysheva
almost 4 years ago

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??


1 vote

permalink

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

38 points
70a002acd2508fc4229515a5f2c02276?s=140&d=retro
Submitted by
David Spain
almost 4 years ago

2 Comments

52e6d9c17c82ca75270021a9_455420955 Gwenny almost 4 years ago

"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];

55df2afa95e3787b9200005e_359368177 Judy almost 4 years ago

Anna's profile has a completed "Animate Your Name" Codebit now, so I'll mark this as resolved. -- Good answer Gwenny.


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)

241 points
Picture
Submitted by
Marcellus May
almost 3 years ago


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)

241 points
Picture
Submitted by
Marcellus May
almost 3 years ago