I need to figure out why the keyPressed isn't working. Thanks for the help.
float x1=800;
float x2=1200;
float x3=1600;
float x4=2000;
float x5=2400;
float x6=2800;
float x7=3200;
float x8=3600;
float x9=4000;
float x10=4400;
float y1=100;
float y2=175;
float y3=250;
float y4=325;
float y5=400;
float y6=475;
float y7=550;
float y8=625;
float y9=700;
float y10=775;
float speed1=5;
void setup(){
size(3000,3000);
PFont a;
a = createFont("Arial", 16, true);
x1=800;
x2=1200;
x3=1600;
x4=2000;
x5=2400;
x6=2800;
x7=3200;
x8=3600;
x9=4000;
x10=4400;
y1=100;
y2=175;
y3=250;
y4=325;
y5=400;
y6=475;
y7=550;
y8=625;
y9=700;
y10=775;
}
void keyPressed(){
if(key =='0'||key =='0'){
{pushMatrix();
text("i think i'm sick again.",x1,y1);text("are successful female heroin dealers considered heoines in their field?",x2,y1);text("got a 70% on my marketing test...not happy.",x3,y1); text("breakfast for lunch.",x4,y1);text("beware of pity.",x5,y1);text("application to oimb is done! now to find a stamp to mail it!",x6,y1);text("i love the way you say goodmorning, <3",x7,y1);text("good morning my loves!",x8,y1);text("it's peanut butter jelly time.",x9,y1); text("4 hours to read and study...finished test in 15 minutes.",x10,y1);}
popMatrix();}
if(keyPressed)
if(key=='1'||key=='1'){
{pushMatrix();
text("i just discovered ricki hall...oh god.",x1,y2);text("lately it seems no matter how hard i try to forget the past and move on, it haunts me.",x2,y2);text("where are my girl scout cookies?!",x3,y2);text("it's going to be a very long week.",x4,y2);text("where in the world is waldo?",x5,y2);text("mmmm, just did some much needed writing.",x6,y2);text("i love when i start watching lethal weapon 5, i watch all of lethal weapon 5.",x7,y2);text("sadness in the air...",x8,y2);text("impractical jokers is the funniest show ever.",x9,y2);text("this isn't the first time that a group of ducks have flown very close to my head.",x10,y2);}
popMatrix();}
if(keyPressed)
if(key=='2'||key=='2'){
{pushMatrix();
text("fresh coffee, bossa nova and getting pounded by policy homework.",x1,y3);text("chilling.",x2,y3);text("the spy who shagged me :D booyah!",x3,y3);text("i absolutely hate not having the full version of microsoft office.",x4,y3);text("like father like son.",x5,y3);text("i don't know how i feel about women in combat zones...i don't want to be in a combat zone.",x6,y3);text("we file for graduation starting friday.",x7,y3);text("good morning my loves!",x8,y3);text("it's peanut butter jelly time.",x9,y3);text("i have done absolutlely nothing with my day but go to work until my back hurt too much to stand anymore.",x10,y3);}
popMatrix();}
if(keyPressed)
if(key=='3'||key=='3'){
{pushMatrix();
text("30 minutes and i'm free! gonna take a bath and relax :).",x1,y4);text("apples to apples with some cool peeps :3.",x2,y4);text("i wish you could choose who you liked.",x3,y4);text("today's my friday! gonna make it a good day. :).",x4,y4);text("can't sleep. :-/",x5,y4);text("monopoly here we come.",x6,y4);text("i also need a date for the slackers.",x7,y4);text("girlfriend date.",x8,y4);text("i freakin' love economics! damn.",x9,y4);text("i loathe when i go to the quiet area in the library and people still come here to talk.",x10,y4);}
popMatrix();}
if(keyPressed)
if(key=='4'||key=='4'){
{pushMatrix();
text("i started tumblr and i'm really confused.",x1,y5);text("so yeah...",x2,y5);text("we are first in line! wooooo!",x3,y5);text("beautiful day today makes me want to wear some shorts and go to the beach.",x4,y5);text("massage time.",x5,y5);text("today i got applauded and cheered at by my english professor for answering a question properly.",x6,y5);text("today is super duper important and i pulled an accident all nighter.",x7,y5);text("the awkward moment when a stranger sits down at your table and starts chatting away.",x8,y5);text("stay out, it doesn't concern you!",x9,y5);text("i can officially suffieciently sweep on the guitar.",x10,y5);}
popMatrix();}
if(keyPressed)
if(key=='5'||key=='5'){
{pushMatrix();
text("i think andrew forgot about me lol :).",x1,y6);text("pride and prejudice turns 200 today! i think i just found out what i'm doing with my evening.",x2,y6);text("happy six months baby doll. <3",x3,y6);text("thank you for all the lovely birthday wishes.",x4,y6);text("having supernatural withdrawls...",x5,y6);text("my sweater has a whistle on the zipper. that's amazing!!!",x6,y6); text("12 hour shift...handled ;).",x7,y6);text("shit's about to get legal. i'm scared for the world.",x8,y6);text("gave my first injection ever and received an injection and now my bottom lip is so numb lol.",x9,y6);text("i just really want to blow trees right now.",x10,y6);}
popMatrix();}
if(keyPressed)
if(key=='6'||key=='6'){
{pushMatrix();
text("well i stepped in dog poo...",x1,y7);text("i'm glad i'm getting invited to all these events, too bad i'm in hawaii.",x2,y7);text("no facebook i don't want to send a starbucks birthday present.",x3,y7);text("who's going to be my date to the specials?",x4,y7);text("eating dinner with my amazing boyfriend.",x5,y7);text("wakey wakey. time to go to price is right! 4 am stlye.",x6,y7);text("home sweet home.",x7,y7);text("so you want to be a master of pokemon. do you have the skills to be number 1?",x8,y7);text("an island off the coast of california was inhabiteted by pygmy mammoths.",x9,y7);text("apartment shopping.",x10,y7);}
popMatrix();}
if(keyPressed)
if(key=='7'||key=='7'){
{pushMatrix();
text("the fantasmic theme is legit...i wanna go to disneyland.",x1,y8);text("life sure is challenging me...good thing i like a good challenge.",x2,y8);text("preparing for local outreach! free hugs!",x3,y8);text("the uo men's choir supports the band, do you?",x4,y8);text("i cry everytime i watch pay it forward. i can't help it!",x5,y8);text("i don't want to use the words bitter asshole on my facebook, but we all know who i'm talking about.",x6,y8);text("goodbye boston. hopefully we'll meet again in the fall.",x7,y8);text("thank you lovely friends and family for all your birthday wishes.",x8,y8);text("praise god, for he is good!",x9,y8);text("life begins at the end of your comfort zone.",x10,y8);}
popMatrix();}
if(keyPressed)
if(key=='8'||key=='8'){
{pushMatrix();
text("we get it poppin'...ahhhh. haha.",x1,y9);text("going to bed always feels the best when you have clean sheets.",x2,y9);text("the post office is almost worse than the dmv.",x3,y9);text("i find it amazing that my empty stomach just made a sound similar to that of collecting multiple coins on temple run.",x4,y9);text("booked. nashville bound.",x5,y9);text("i don't care what you all say, nobody beats the jackson 5, well, except for their dad.",x6,y9);text("7 pm thursday, columbia 150, let's pack the house in support of our band. sko ducks!",x7,y9);text(":)",x8,y9);text("forbes rated applied math as the 10th most valuable degree to have.",x9,y9);text("my life is made.",x10,y9);}
popMatrix();}
if(keyPressed)
if(key=='9'||key=='9'){
{pushMatrix();
text("my grandma just told my grandpa she wished she stayed single and he replied i love you too.",x1,y10);text("going to bed always feels the best when you have clean sheets.",x2,y10);text("pretty little liars tonight! :))",x3,y10);text("the moment when you read nine pages for class and you've barely finished the intro, -__-",x4,y10);text("one day i will be there at the top...",x5,y10);text("bitching to your date about how much money you just spent on popcorn and her ticket is a sure way to guarantee a second date.",x6,y10);text("support the band.",x7,y10);text("i'm hungry.",x8,y10);text("teen mom season finale!",x9,y10);text("e=mc hammer",x10,y10);}
popMatrix();} }
void draw(){
x1-=speed1;
background(255);
fill(4);
if(x1<50){x1=50;}
text("i think i'm sick again.",x1,y1);
x2-=speed1;
if(x2<50){x2=50;}
text("are successful female heroin dealers considered heoines in their field?",x2,y1);
x3-=speed1;
if(x3<50){x3=50;}
text("got a 70% on my marketing test...not happy.",x3,y1);
x4-=speed1;
if(x4<50){x4=50;}
text("breakfast for lunch.",x4,y1);
x5-=speed1;
if(x5<50){x5=50;}
text("beware of pity.",x5,y1);
x6-=speed1;
if(x6<50){x6=50;}
text("application to oimb is done! now to find a stamp to mail it!",x6,y1);
x7-=speed1;
if(x7<50){x7=50;}
text("i love the way you say goodmorning, <3",x7,y1);
x8-=speed1;
if(x8<50){x8=50;}
text("good morning my loves!",x8,y1);
x9-=speed1;
if(x9<50){x9=50;}
text("it's peanut butter jelly time.",x9,y1);text("4 hours to read and study...finished test in 15 minutes.",x10,y1);
//1
x1-=speed1;
if(x1<50){x1=50;}
text("i just discovered ricki hall...oh god.",x1,y2);
x2-=speed1;
if(x2<50){x2=50;}
text("lately it seems no matter how hard i try to forget the past and move on, it haunts me.",x2,y2);
x3-=speed1;
if(x3<50){x3=50;}
text("where are my girl scout cookies?!",x3,y2);
x4-=speed1;
if(x4<50){x4=50;}
text("it's going to be a very long week.",x4,y2);
x5-=speed1;
if(x5<50){x5=50;}
text("where in the world is waldo?",x5,y2);
x6-=speed1;
if(x6<50){x6=50;}
text("mmmm, just did some much needed writing.",x6,y2);
x7-=speed1;
if(x7<50){x7=50;}
text("i love when i start watching lethal weapon 5, i watch all of lethal weapon 5.",x7,y2);
x8-=speed1;
if(x8<50){x8=50;}
text("sadness in the air...",x8,y2);
x9-=speed1;
if(x9<50){x9=50;}
text("impractical jokers is the funniest show ever.",x9,y2);
x10-=speed1;
if(x10<50){x10=50;}
text("this isn't the first time that a group of ducks have flown very close to my head.",x10,y2);
//2
x1-=speed1;
if(x1<50){x1=50;}
text("fresh coffee, bossa nova and getting pounded by policy homework.",x1,y3);
x2-=speed1;
if(x2<50){x2=50;}
text("chilling.",x2,y3);
x3-=speed1;
if(x3<50){x3=50;}
text("the spy who shagged me :D booyah!",x3,y3);
x4-=speed1;
if(x4<50){x4=50;}
text("i absolutely hate not having the full version of microsoft office.",x4,y3);
x5-=speed1;
if(x5<50){x5=50;}
text("like father like son.",x5,y3);
x6-=speed1;
if(x6<50){x6=50;}
text("i don't know how i feel about women in combat zones...i don't want to be in a combat zone.",x6,y3);
x7-=speed1;
if(x7<50){x7=50;}
text("we file for graduation starting friday.",x7,y3);
x8-=speed1;
if(x8<50){x8=50;}
text("good morning my loves!",x8,y3);
x9-=speed1;
if(x9<50){x9=50;}
text("it's peanut butter jelly time.",x9,y3);
x10-=speed1;
if(x10<50){x10=50;}
text("i have done absolutlely nothing with my day but go to work until my back hurt too much to stand anymore.",x10,y3);
//3
x1-=speed1;
if(x1<50){x1=50;}
text("30 minutes and i'm free! gonna take a bath and relax :).",x1,y4);
x2-=speed1;
if(x2<50){x2=50;}
text("apples to apples with some cool peeps :3.",x2,y4);
x3-=speed1;
if(x3<50){x3=50;}
text("i wish you could choose who you liked.",x3,y4);
x4-=speed1;
if(x4<50){x4=50;}
text("today's my friday! gonna make it a good day. :).",x4,y4);
x5-=speed1;
if(x5<50){x5=50;}
text("can't sleep. :-/",x5,y4);
x6-=speed1;
if(x6<50){x6=50;}
text("monopoly here we come.",x6,y4);
x7-=speed1;
if(x7<50){x7=50;}
text("i also need a date for the slackers.",x7,y4);
x8-=speed1;
if(x8<50){x8=50;}
text("girlfriend date.",x8,y4);
x9-=speed1;
if(x9<50){x9=50;}
text("i freakin' love economics! damn.",x9,y4);
x10-=speed1;
if(x10<50){x10=50;}
text("i loathe when i go to the quiet area in the library and people still come here to talk.",x10,y4);
//4
x1-=speed1;
if(x1<50){x1=50;}
text("i started tumblr and i'm really confused.",x1,y5);
x2-=speed1;
if(x2<50){x2=50;}
text("so yeah...",x2,y5);
x3-=speed1;
if(x3<50){x3=50;}
text("we are first in line! wooooo!",x3,y5);
x4-=speed1;
if(x4<50){x4=50;}
text("beautiful day today makes me want to wear some shorts and go to the beach.",x4,y5);
x5-=speed1;
if(x5<50){x5=50;}
text("massage time.",x5,y5);
x6-=speed1;
if(x6<50){x6=50;}
text("today i got applauded and cheered at by my english professor for answering a question properly.",x6,y5);
x7-=speed1;
if(x7<50){x7=50;}
text("today is super duper important and i pulled an accident all nighter.",x7,y5);
x8-=speed1;
if(x8<50){x8=50;}
text("the awkward moment when a stranger sits down at your table and starts chatting away.",x8,y5);
x9-=speed1;
if(x9<50){x9=50;}
text("stay out, it doesn't concern you!",x9,y5);
x10-=speed1;
if(x10<50){x10=50;}
text("i can officially suffieciently sweep on the guitar.",x10,y5);
//5
x1-=speed1;
if(x1<50){x1=50;}
text("i think andrew forgot about me lol :).",x1,y6);
x2-=speed1;
if(x2<50){x2=50;}
text("pride and prejudice turns 200 today! i think i just found out what i'm doing with my evening.",x2,y6);
x3-=speed1;
if(x3<50){x3=50;}
text("happy six months baby doll. <3",x3,y6);
x4-=speed1;
if(x4<50){x4=50;}
text("thank you for all the lovely birthday wishes.",x4,y6);
x5-=speed1;
if(x5<50){x5=50;}
text("having supernatural withdrawls...",x5,y6);
x6-=speed1;
if(x6<50){x6=50;}
text("my sweater has a whistle on the zipper. that's amazing!!!",x6,y6);
x7-=speed1;
if(x7<50){x7=50;}
text("12 hour shift...handled ;).",x7,y6);
x8-=speed1;
if(x8<50){x8=50;}
text("shit's about to get legal. i'm scared for the world.",x8,y6);
x9-=speed1;
if(x9<50){x9=50;}
text("gave my first injection ever and received an injection and now my bottom lip is so numb lol.",x9,y6);
x10-=speed1;
if(x10<50){x10=50;}
text("i just really want to blow trees right now.",x10,y6);
//6
x1-=speed1;
if(x1<50){x1=50;}
text("well i stepped in dog poo...",x1,y7);
x2-=speed1;
if(x2<50){x2=50;}
text("i'm glad i'm getting invited to all these events, too bad i'm in hawaii.",x2,y7);
x3-=speed1;
if(x3<50){x3=50;}
text("no facebook i don't want to send a starbucks birthday present.",x3,y7);
x4-=speed1;
if(x4<50){x4=50;}
text("who's going to be my date to the specials?",x4,y7);
x5-=speed1;
if(x5<50){x5=50;}
text("eating dinner with my amazing boyfriend.",x5,y7);
x6-=speed1;
if(x6<50){x6=50;}
text("wakey wakey. time to go to price is right! 4 am stlye.",x6,y7);
x7-=speed1;
if(x7<50){x7=50;}
text("home sweet home.",x7,y7);
x8-=speed1;
if(x8<50){x8=50;}
text("so you want to be a master of pokemon. do you have the skills to be number 1?",x8,y7);
x9-=speed1;
if(x9<50){x9=50;}
text("an island off the coast of california was inhabiteted by pygmy mammoths.",x9,y7);
x10-=speed1;
if(x10<50){x10=50;}
text("apartment shopping.",x10,y7);
//7
x1-=speed1;
if(x1<50){x1=50;}
text("the fantasmic theme is legit...i wanna go to disneyland.",x1,y8);
x2-=speed1;
if(x2<50){x2=50;}
text("life sure is challenging me...good thing i like a good challenge.",x2,y8);
x3-=speed1;
if(x3<50){x3=50;}
text("preparing for local outreach! free hugs!",x3,y8);
x4-=speed1;
if(x4<50){x4=50;}
text("the uo men's choir supports the band, do you?",x4,y8);
x5-=speed1;
if(x5<50){x5=50;}
text("i cry everytime i watch pay it forward. i can't help it!",x5,y8);
x6-=speed1;
if(x6<50){x6=50;}
text("i don't want to use the words bitter asshole on my facebook, but we all know who i'm talking about.",x6,y8);
x7-=speed1;
if(x7<50){x7=50;}
text("goodbye boston. hopefully we'll meet again in the fall.",x7,y8);
x8-=speed1;
if(x8<50){x8=50;}
text("thank you lovely friends and family for all your birthday wishes.",x8,y8);
x9-=speed1;
if(x9<50){x9=50;}
text("praise god, for he is good!",x9,y8);
x10-=speed1;
if(x10<50){x10=50;}
text("life begins at the end of your comfort zone.",x10,y8);
//8
x1-=speed1;
if(x1<50){x1=50;}
text("we get it poppin'...ahhhh. haha.",x1,y9);
x2-=speed1;
if(x2<50){x2=50;}
text("going to bed always feels the best when you have clean sheets.",x2,y9);
x3-=speed1;
if(x3<50){x3=50;}
text("the post office is almost worse than the dmv.",x3,y9);
x4-=speed1;
if(x4<50){x4=50;}
text("i find it amazing that my empty stomach just made a sound similar to that of collecting multiple coins on temple run.",x4,y9);
x5-=speed1;
if(x5<50){x5=50;}
text("booked. nashville bound.",x5,y9);
x6-=speed1;
if(x6<50){x6=50;}
text("i don't care what you all say, nobody beats the jackson 5, well, except for their dad.",x6,y9);
x7-=speed1;
if(x7<50){x7=50;}
text("7 pm thursday, columbia 150, let's pack the house in support of our band. sko ducks!",x7,y9);
x8-=speed1;
if(x8<50){x8=50;}
text(":)",x8,y9);
x9-=speed1;
if(x9<50){x9=50;}
text("forbes rated applied math as the 10th most valuable degree to have.",x9,y9);
x10-=speed1;
if(x10<50){x10=50;}
text("my life is made.",x10,y9);
//9
x1-=speed1;
if(x1<50){x1=50;}
text("my grandma just told my grandpa she wished she stayed single and he replied i love you too.",x1,y10);
x2-=speed1;
if(x2<50){x2=50;}
text("going to bed always feels the best when you have clean sheets.",x2,y10);
x3-=speed1;
if(x3<50){x3=50;}
text("pretty little liars tonight! :))",x3,y10);
x4-=speed1;
if(x4<50){x4=50;}
text("the moment when you read nine pages for class and you've barely finished the intro, -__-",x4,y10);
x5-=speed1;
if(x5<50){x5=50;}
text("one day i will be there at the top...",x5,y10);
x6-=speed1;
if(x6<50){x6=50;}
text("bitching to your date about how much money you just spent on popcorn and her ticket is a sure way to guarantee a second date.",x6,y10);