My processing is giving me a weird error that says UnsatisfieLinkError: quicktime.QTSession.InitializeQTML(I)S. I looked it up but I found no help. I installed and re-installed the latest Quicktime player but it still doesn't work. I use a windows 7. This is a simplified piece of audio, the other code(one in my previous posts) is way too long os I used a simpler one. In the real one, I use a downloaded mp3, not a URL though.
import processing.video.*;
Movie myMovie;
void setup() {
size(200, 200);
myMovie = new Movie(this, "http://www.youtube.com/watch?v=VZxK58tPU4I&feature=related");
String s="Press up and down arrows to move the ship up and down. The number of enemies is displayed in the bottom right corner. You laser will get stronger every level and so will the enemies. At level 10, there will be a boss. Every time an enemy goes off screen, you will lose a life. You have 20 lives. Lasers must recharge so you can't use them for too long. There are three ways to shoot. Hold space bar to shoot forward or press n for blast cannon. Blast cannons are extremely powerful but you only have four.";
String s="Press up and down arrows to move the ship up and down. The number of enemies is displayed in the bottom right corner. You laser will get stronger every level and so will the enemies. At level 10, there will be a boss. Every time an enemy goes off screen, you will lose a life. You have 20 lives. Lasers must recharge so you can't use them for too long. There are three ways to shoot. Hold space bar to shoot forward or press n for blast cannon. Blast cannons are extremely powerful but you only have four.";
String s="Press up and down arrows to move the ship up and down. The number of enemies is displayed in the bottom right corner. You laser will get stronger every level and so will the enemies. At level 10, there will be a boss. Every time an enemy goes off screen, you will lose a life. You have 20 lives. Lasers must recharge so you can't use them for too long. There are three ways to shoot. Hold space bar to shoot forward or press n for blast cannon. Blast cannons are extremely powerful but you only have four.";
Thanks to all who have already helped me.I'm still pretty new at this so thanks.
Now there is an issue with the scoring, the levels(still can't get them to work), the laser timer(constrain doesn't work), and the number of enemies left per level.
Thanks again!
/*William Wang
creates a shooting game.
Instructions:
Press up and down arrows to move the ship up and down.
The number of enemies is displayed in the bottom right corner.
You laser will get stronger every level and so will the enemies.
At level 10, there will be a boss.
Every time an enemy goes off screen, you will lose a life.
You have 20 lives.
Lasers must recharge so you can't use them for too long.
There are three ways to shoot.
Hold space bar to shoot forward or press n for blast cannon.
Blast cannons are extremely powerful but you only have four.
String s="Press up and down arrows to move the ship up and down. The number of enemies is displayed in the bottom right corner. You laser will get stronger every level and so will the enemies. At level 10, there will be a boss. Every time an enemy goes off screen, you will lose a life. You have 20 lives. Lasers must recharge so you can't use them for too long. There are three ways to shoot. Hold space bar to shoot forward or press n for blast cannon. Blast cannons are extremely powerful but you only have four.";
String s="Press up and down arrows to move the ship up and down. The number of enemies is displayed in the bottom right corner. You laser will get stronger every level and so will the enemies. At level 10, there will be a boss. Every time an enemy goes off screen, you will lose a life. You have 20 lives. Lasers must recharge so you can't use them for too long. There are three ways to shoot. Hold space bar to shoot forward or press n for blast cannon. Blast cannons are extremely powerful but you only have four.";
the player will not move. Also, how do I have the 'laser' kill enemies? Also, how do I monitor if all the enemies are dead to move the level up? Why do the enemies slow down when space is pressed too
String s="Press up and down arrows to move the ship up and down. The number of enemies is displayed in the bottom right corner. You laser will get stronger every level and so will the enemies. At level 10, there will be a boss. Every time an enemy goes off screen, you will lose a life. You have 20 lives. Lasers must recharge so you can't use them for too long. There are three ways to shoot. Click a target and laser will shoot it, hold space bar to shoot forward, or press space for blast cannon. Blast cannons are extremely powerful but you only have four.";
Enemy(float tempXpos, float tempYpos, int tempHealth, float tempSpeed){
xpos= tempXpos;
ypos= tempXpos;
health= tempHealth;
speed= tempSpeed;
}
void display(){
stroke(1,1,33);
fill(72,7,7);
beginShape();
vertex(xpos-4,ypos);
vertex(xpos,ypos-2);
vertex(xpos+2,ypos-4);
vertex(xpos+1,ypos);
vertex(xpos+2,ypos+4);
vertex(xpos,ypos+2);
endShape(CLOSE);
}
void move(){
xpos=xpos-speed;
if(xpos+2<0){
life-=1;
}
}
}
what happens is that I don't see the Enemies. Also, my teacher thought that it would be too hard to explain how to do something so she skipped it and I need someone to help me with it. Whenever a condition is met for a class, all of the objects disappear(ex.I shoot one and all of them disappear). How do you fix that?
In this game, you control the ellipse and make it move. You try and dodge the incoming walls. You have three lives which I used booleans to measure. When the 4th boolean is true, then it is game over. But I can't get the third boolean to work.(I'm only a beginner so please don't do anything too complex. Thanks) This is my program:
/*week three project
dodge block game
*/
int x;
float blockY=50;
float block2Y=470;
PFont font;
int xpos=200;
int ypos=250;
boolean life1=false;
boolean life2=false;
boolean life3=false;
boolean life4=false;
int blockX=1550;
int block2X=blockX+750;
void setup(){
size(1500,500);
font=loadFont ("AgencyFB-Reg-48.vlw");
textSize (30);
smooth();
}
void draw(){
background (0);
block();
gameCharacter();
instruct();
if(life4==true){
x=x+10;
background(x);
delay (100);
textSize(100);
fill(255,0,0);
text("Game Over");
}
}
void instruct(){
fill(175);
text ("Avoid moving blocks. AWSD keys are faster, arrow keys are slower.",250,40);