I cant play 2 videos idk why AND PLEASE STOP SAY DONT CALL SETUP :)

import processing.video.*;

int puan=0;
int timer;
int page=0;
boolean pressed=false;

Movie mov,mov2;
PImage foto1, foto2, foto3, foto4, foto5, foto6, foto7,foto8,foto9,foto10,foto11,bg;

void setup() {

size(860, 640);
page+=1;
pressed=true;
background(0);
mov = new Movie(this, “movie1.mp4”);
mov.loop();
mov.volume(0);
mov= new Movie(this,“movie2.mp4”);
mov2.loop();
mov.volume(0);
foto1=loadImage(“data/foto1.jpg”);
foto2=loadImage(“data/foto2.png”);
foto3=loadImage(“data/foto3.jpg”);
foto4=loadImage(“data/foto4.jpg”);
foto5=loadImage(“data/foto5.jpg”);
foto6=loadImage(“data/foto6.png”);
foto7=loadImage(“data/foto7.jpg”);
foto8=loadImage(“data/foto8.jpg”);
foto9=loadImage(“data/foto9.jpg”);
foto10=loadImage(“data/foto10.jpg”);
foto11=loadImage(“data/foto11.jpg”);
bg=loadImage(“data/bg.jpg”);
}

void movieEvent(Movie movie) {

mov.read();
mov2.read();
}

void draw() {

switch(page) {
case 1:
page1();
break;
case 2:
page2();
break;
case 3:
page3();
break;
case 4:
page4();
break;
case 5:
page5();
break;
case 6:
page6();
break;
case 7:
page7();
break;
case 8:page8();
break;
case 9:page9();
break;
case 10:page10();break;
case 11:page11();break;
case 12:page12();break;
}
}
void page1() {
image(mov, 0, 0, width, 400);
fill(255);
text(“Filmi İsmi : Yedinci Oğul”, 0, 30);
textSize(20);
text(“İzlemekte Olduğunuz Kısımda Yarı İnsanı Gören Dev ne Tepki Vermiştir ?”, 0, 410);

if (mouseX>50 && mouseY>500 && mouseX<200 && mouseY<550 && mousePressed==true ) {
background(255, 0, 0);
rect(50, 500, 150, 50);
rect(350, 500, 150, 50);
rect(600, 500, 150, 50);
setup();
} else if (mouseX>350 && mouseY>500 && mouseX<500 && mouseY<550 && mousePressed==true) {
rect(100, 500, 150, 50);
rect(350, 500, 150, 50);
rect(600, 500, 150, 50);
puan+=20;
setup();
} else if (mouseX>600 && mouseY>500 && mouseX<750 && mouseY<550 && mousePressed==true) {
rect(50, 500, 150, 50);
rect(600, 500, 150, 50);
rect(350, 500, 150, 50);
setup();
} else {
fill(0);
stroke(255);
rect(50, 500, 150, 50);
rect(350, 500, 150, 50);
rect(650, 500, 150, 50);
fill(255);
text(“Aşık olur”, 82, 530);
text(“Tokatlar”, 385, 530);
text(“Korkup Kaçar”, 662, 530);
}
}
void page2() {

image(mov2, 150, 0);
fill(255);
textSize(20);
text(“Braveheart Filminde Mel Gibsonun Canlandırdığı Karakterin İsmi Nedir?”, 0, 430);

if (mouseX>50 && mouseY>500 && mouseX<200 && mouseY<550 && mousePressed==true ) {
background(255, 0, 0);
rect(50, 500, 150, 50);
rect(350, 500, 150, 50);
rect(600, 500, 150, 50);
setup();
} else if (mouseX>350 && mouseY>500 && mouseX<500 && mouseY<550 && mousePressed==true) {
rect(100, 500, 150, 50);
rect(350, 500, 150, 50);
rect(600, 500, 150, 50);

setup();

} else if (mouseX>600 && mouseY>500 && mouseX<750 && mouseY<550 && mousePressed==true) {
rect(50, 500, 150, 50);
rect(600, 500, 150, 50);
rect(350, 500, 150, 50);
setup();
puan+=20;
} else {
fill(0);
stroke(255);
rect(50, 500, 150, 50);
rect(350, 500, 150, 50);
rect(650, 500, 160, 50);
fill(255);
text(“Murron”, 90, 530);
text(“Robert Bruce”, 365, 530);
text(“William Wallace”, 655, 530);
}
}

void page3() {
image(foto2, 150, 0);
fill(255);
textSize(20);
text(“John Doe, Yedi Ölümcül Günahtan Birini İşledikleri İçin Suçluları Cezalandırır.\n Önce Peşine Düştüğü Kurban Hangi Günahtan Suçlu?”, 0, 430);

if (mouseX>50 && mouseY>500 && mouseX<200 && mouseY<550 && mousePressed==true ) {
background(255, 0, 0);
rect(50, 500, 150, 50);
rect(350, 500, 150, 50);
rect(600, 500, 150, 50);
setup();
} else if (mouseX>350 && mouseY>500 && mouseX<500 && mouseY<550 && mousePressed==true) {
rect(100, 500, 150, 50);
rect(350, 500, 150, 50);
rect(600, 500, 150, 50);
puan+=20;
setup();
} else if (mouseX>600 && mouseY>500 && mouseX<750 && mouseY<550 && mousePressed==true) {
rect(50, 500, 150, 50);
rect(600, 500, 150, 50);
rect(350, 500, 150, 50);
setup();
} else {
fill(0);
stroke(255);
rect(50, 500, 150, 50);
rect(350, 500, 150, 50);
rect(650, 500, 160, 50);
fill(255);
text(“Kibir”, 100, 530);
text(“Tembellik”, 377, 530);
text(“Kıskançlık”, 683, 530);
}
}
void page4() {

image(foto3, 150, 0);
fill(255);
textSize(20);
text(“Fight Club’un Kurucusu Kimdir?”, 0, 430);

if (mouseX>50 && mouseY>500 && mouseX<200 && mouseY<550 && mousePressed==true ) {
background(255, 0, 0);
rect(50, 500, 150, 50);
rect(350, 500, 150, 50);
rect(600, 500, 150, 50);
setup();
} else if (mouseX>350 && mouseY>500 && mouseX<500 && mouseY<550 && mousePressed==true) {
rect(100, 500, 150, 50);
rect(350, 500, 150, 50);
rect(600, 500, 150, 50);
puan+=20;
setup();
} else if (mouseX>600 && mouseY>500 && mouseX<750 && mouseY<550 && mousePressed==true) {
rect(50, 500, 150, 50);
rect(600, 500, 150, 50);
rect(350, 500, 150, 50);
setup();
} else {
fill(0);
stroke(255);
rect(50, 480, 150, 50);
rect(350, 480, 150, 50);
rect(650, 480, 160, 50);

fill(255);
text("Tyler Durden", 65, 510);
text("The Narrator", 365, 510);
text("Marla Singer", 672, 510);

}
}
void page5() {
image(foto4, 150, 0);
fill(255);
textSize(20);
text("Köstebek Filmindeki Collin Sullivan Yani Matt Damon Nasıl Ölmüştür ", 0, 430);

if (mouseX>50 && mouseY>500 && mouseX<200 && mouseY<550 && mousePressed==true ) {
background(255, 0, 0);
rect(50, 500, 150, 50);
rect(350, 500, 150, 50);
rect(600, 500, 150, 50);
setup();
} else if (mouseX>350 && mouseY>500 && mouseX<500 && mouseY<550 && mousePressed==true) {
rect(100, 500, 150, 50);
rect(350, 500, 150, 50);
rect(600, 500, 150, 50);
puan+=20;
setup();
} else if (mouseX>600 && mouseY>500 && mouseX<750 && mouseY<550 && mousePressed==true) {
rect(50, 500, 150, 50);
rect(600, 500, 150, 50);
rect(350, 500, 150, 50);
setup();
} else {
fill(0);
stroke(255);
rect(50, 480, 180, 50);
rect(350, 480, 179, 50);
rect(650, 480, 160, 50);

fill(255);
text("Sniper İle Vuruldu", 54, 510);
text("Pencereden atıldı", 357, 510);
text("Araba Çarptı", 672, 510);

}
}
void page6() {
image(foto5, 150, 0);
fill(255);
textSize(20);
text(“Zodiac Katilinin İlk Hedef Aldığı Kişi Kimdir?”, 0, 430);

if (mouseX>50 && mouseY>500 && mouseX<200 && mouseY<550 && mousePressed==true ) {
background(255, 0, 0);
rect(50, 500, 150, 50);
rect(350, 500, 150, 50);
rect(600, 500, 150, 50);
setup();
} else if (mouseX>350 && mouseY>500 && mouseX<500 && mouseY<550 && mousePressed==true) {
rect(100, 500, 150, 50);
rect(350, 500, 150, 50);
rect(600, 500, 150, 50);
puan+=20;
setup();
} else if (mouseX>600 && mouseY>500 && mouseX<750 && mouseY<550 && mousePressed==true) {
rect(50, 500, 150, 50);
rect(600, 500, 150, 50);
rect(350, 500, 150, 50);
setup();
} else {
fill(0);
stroke(255);
rect(50, 480, 160, 50);
rect(350, 480, 150, 50);
rect(650, 480, 150, 50);

fill(255);
text("Taksi Şöförü", 70, 510);
text("Annesi", 392, 510);
text("Komşusu", 686, 510);

}
}
void page7() {
image(foto6, 150, 0);
fill(255);
textSize(20);
text(“Limitless Filmindeki Eddie Morra Karakterimizin Hayatını Değiştiren Hapın Adı Nedir?”, 0, 430);

if (mouseX>50 && mouseY>500 && mouseX<200 && mouseY<550 && mousePressed==true ) {
background(255, 0, 0);
rect(50, 500, 150, 50);
rect(350, 500, 150, 50);
rect(600, 500, 150, 50);
puan+=20;
setup();
} else if (mouseX>350 && mouseY>500 && mouseX<500 && mouseY<550 && mousePressed==true) {
rect(100, 500, 150, 50);
rect(350, 500, 150, 50);
rect(600, 500, 150, 50);

setup();

} else if (mouseX>600 && mouseY>500 && mouseX<750 && mouseY<550 && mousePressed==true) {
rect(50, 500, 150, 50);
rect(600, 500, 150, 50);
rect(350, 500, 150, 50);
setup();

} else {
fill(0);
stroke(255);
rect(50, 500, 150, 50);
rect(350, 500, 150, 50);
rect(650, 500, 160, 50);
fill(255);
text(“MZT”, 100, 530);
text(“Prozac”, 395, 530);
text(“Dopamine”, 680, 530);
}
}
void page8() {

image(foto7, 150, 0);
fill(255);
textSize(20);
text(“Lucy Beyninin %100 Kullanmaya Başladıktan Sonra Ne Oldu?”, 0, 430);

if (mouseX>50 && mouseY>500 && mouseX<200 && mouseY<550 && mousePressed==true ) {
background(255, 0, 0);
rect(50, 500, 150, 50);
rect(350, 500, 150, 50);
rect(600, 500, 150, 50);
setup();
} else if (mouseX>350 && mouseY>500 && mouseX<500 && mouseY<550 && mousePressed==true) {
rect(100, 500, 150, 50);
rect(350, 500, 150, 50);
rect(600, 500, 150, 50);

setup();

} else if (mouseX>600 && mouseY>500 && mouseX<750 && mouseY<550 && mousePressed==true) {
rect(50, 500, 150, 50);
rect(600, 500, 150, 50);
rect(350, 500, 150, 50);
puan+=20;
setup();
} else {
fill(0);
stroke(255);
rect(50, 480, 150, 50);
rect(350, 480, 150, 50);
rect(650, 480, 160, 50);

fill(255);
text("Geçmişe Gitti", 60, 510);
text("Öldü", 407, 510);
text("Yok Oldu", 687, 510);

}
}
void page9() {
image(foto8, 150, 0);
fill(255);
textSize(20);
text(“Scarface Filmi Hangi Şehirde Geçmektedir?”, 0, 430);

if (mouseX>50 && mouseY>500 && mouseX<200 && mouseY<550 && mousePressed==true ) {
background(255, 0, 0);
rect(50, 500, 150, 50);
rect(350, 500, 150, 50);
rect(600, 500, 150, 50);
setup();
} else if (mouseX>350 && mouseY>500 && mouseX<500 && mouseY<550 && mousePressed==true) {
rect(100, 500, 150, 50);
rect(350, 500, 150, 50);
rect(600, 500, 150, 50);
puan+=20;
setup();
} else if (mouseX>600 && mouseY>500 && mouseX<750 && mouseY<550 && mousePressed==true) {
rect(50, 500, 150, 50);
rect(600, 500, 150, 50);
rect(350, 500, 150, 50);
setup();
} else {
fill(0);
stroke(255);
rect(50, 500, 150, 50);
rect(350, 500, 170, 50);
rect(650, 500, 150, 50);
fill(255);
text(“Miami”, 93, 530);
text(“Washington DC”, 359, 530);
text(“Las Vegas”, 685, 530);
}
}
void page10() {
image(foto9, 150, 0);
fill(255);
textSize(20);
text(“Residant Evil Filmindeki Alice İsimli Karakterin Soyadı Nedir ?”, 0, 430);

if (mouseX>50 && mouseY>500 && mouseX<200 && mouseY<550 && mousePressed==true ) {
background(255, 0, 0);
rect(50, 500, 150, 50);
rect(350, 500, 150, 50);
rect(600, 500, 150, 50);
setup();
} else if (mouseX>350 && mouseY>500 && mouseX<500 && mouseY<550 && mousePressed==true) {
rect(100, 500, 150, 50);
rect(350, 500, 150, 50);
rect(600, 500, 150, 50);
puan+=20;
setup();
} else if (mouseX>600 && mouseY>500 && mouseX<750 && mouseY<550 && mousePressed==true) {
rect(50, 500, 150, 50);
rect(600, 500, 150, 50);
rect(350, 500, 150, 50);
setup();
} else {
fill(0);
stroke(255);
rect(50, 480, 180, 50);
rect(350, 480, 150, 50);
rect(650, 480, 150, 50);

fill(255);
text("Hiç Bahsedilmedi", 57, 510);
text("Camper", 392, 510);
text("Valantine", 686, 510);

}
}
void page11() {
image(foto10, 150, 0);
fill(255);
textSize(20);
text(“Benjamin Button’ın Tuhaf Hikayesi Filminin Ana Karakterlerinden \n Biri Olan Daisy’nin Mesleği Nedir?”, 0, 430);

if (mouseX>50 && mouseY>500 && mouseX<200 && mouseY<550 && mousePressed==true ) {
background(255, 0, 0);
rect(50, 500, 150, 50);
rect(350, 500, 150, 50);
rect(600, 500, 150, 50);
setup();
} else if (mouseX>350 && mouseY>500 && mouseX<500 && mouseY<550 && mousePressed==true) {
rect(100, 500, 150, 50);
rect(350, 500, 150, 50);
rect(600, 500, 150, 50);
puan+=20;
setup();
} else if (mouseX>600 && mouseY>500 && mouseX<750 && mouseY<550 && mousePressed==true) {
rect(50, 500, 150, 50);
rect(600, 500, 150, 50);
rect(350, 500, 150, 50);
setup();
} else {
fill(0);
stroke(255);
rect(50, 500, 150, 50);
rect(350, 500, 150, 50);
rect(650, 500, 160, 50);
fill(255);
text(“Balerin”, 90, 530);
text(“Oyuncu”, 387, 530);
text(“Çiftçi”, 698, 530);
}
}
void page12() {
image(foto11, 150, 0);
fill(255);
textSize(20);
text(“Deadpool’un Deadpool Olmadan Önceki Mesleği Nedir ?”, 0, 430);

if (mouseX>50 && mouseY>500 && mouseX<200 && mouseY<550 && mousePressed==true ) {
background(255, 0, 0);
rect(50, 500, 150, 50);
rect(350, 500, 150, 50);
rect(600, 500, 150, 50);
setup();
} else if (mouseX>350 && mouseY>500 && mouseX<500 && mouseY<550 && mousePressed==true) {
rect(100, 500, 150, 50);
rect(350, 500, 150, 50);
rect(600, 500, 150, 50);
puan+=20;
setup();
} else if (mouseX>600 && mouseY>500 && mouseX<750 && mouseY<550 && mousePressed==true) {
rect(50, 500, 150, 50);
rect(600, 500, 150, 50);
rect(350, 500, 150, 50);
setup();
} else {
fill(0);
stroke(255);
rect(50, 500, 150, 50);
rect(350, 500, 150, 50);
rect(650, 500, 160, 50);
fill(255);
text(“Paralı Asker”, 73, 530);
text(“Ajan”, 404, 530);
text(“Pezevenk”, 683, 530);
}
}

1 Like

This

mov= new Movie(this,“movie2.mp4”);

maybe better

mov2=…

Besides:

are you trying to play two movies at once or after each other?

1 Like

Hello,

Please format your code as a courtesy to the community:
https://discourse.processing.org/faq#format-your-code

:)

one after another they working in same time :smiley:

I am sleeping now I hope when I wake up I will be happy :slight_smile:

What would help is to do your part first and format your post appropriately
That will attract more readership, you lost me at the capital letters (why are you shouting at me) and the 2 miles long post.

May you annotate your code? Currently it’s not to easy to read. I suggest adding a few //comments to let viewers know what the code is doing.
(Also, does code formatting work for you?)