Hi I am using the audioplayer class to play a sound on a keypress. My problem is, if I press the key again, the sound does not play...it only plays once. Is there a way around this?
Hi, I am making a program which has many objects so I want to create classes for them. One of my objects is an image of a dog that moves with mouseX, mouseY. When I make a class the image does not draw.
The lines of code I used are:
PImage dog;
void setup(){
dog = loadImage("dog.jpg");
}
void draw()
image(dog, mouseX, mouseY);
How would I turn this into a class and how would I call it because I cannot get it to work when I turn it into a class. Thanks