k thank you
Type: Posts; User: sakonpure6
k thank you
Thanks, this is what I got.
I placed the jar file on my desk top
The command prompt tells me it can not execute.
Hi, I finished my game, and I would like to "publish" it, however when I Export the project alongside the resource files, the jar file does not:
1-Play the music
2- Display Pictures
3- Start the...
..I don't think it affects the code until the same Thread is recalled where now muted = falsed .
Here is the main.java
import java.io.File;
public class main {
public static void main(String[] args) {
PlaySound.sound = new File("res/music.wav");
new...
Thank you all, I fixed the issue.
I believe the code is not executed or perhaps not applied to the specific thread because the music keeps on playing!
but how do i do it? I tried doing PlaySound.mute = true; but it does not work? how would you do it?
I want to set the variable muted to true in the class PlaySound so the music file playing would stop.
I googled a tutorial on playing sounds, and therefore I have developed this class, and when I use it I create a new Thread . This is how I do it:
PlaySound.sound = new File("Music/Gman_end.wav");...
How do I override painComponent? Can you please provide an example?
Hi, So I am making a game and I created a class called Board which is basically the engine of my game , and I implement it into a JFrame. Now, I have set a Boolean variable "ready_to_end" and if it...
I get no errors, the programm keeps functioning normally
Hi, in my game I added a new "board" whcih starts the game. However once I finish the game, I have a boolean varaible and I set it to true. How can I use that variable to dispose of the Jframe I was...
Ohhhh , finally thank you for this reply.
How can I rewrite everythimg back where the txt file wpuld still contain the old data. How do I delete everything inside it?
Let's say I have a map.txt file, and I know what row and column the char I want to change is at. How do I do this?
Thank you for your time.
--- Update ---
Bump, please help me. This is the...
Omg I have to be the stupidest guy around. In my volume mixer Java was muted. Thank you so much andbin for your constant feedback, it is highly appreciated.
Edit: Do you know how to run music at...
There is nothing in console view
Non at all. The error box in eclipse is empty. Its just that I hear nothing and yes I tested speakers :D
Sorry, I did not understand :( , I tried linking the music.mp3 using this method "C:\\Users\\sakonpure6\\Desktop\\Java Projects\\Sounds\res\\music.mp3" still no sound plays? Btw I only added the jar...
Hi I downloaded the custom library Jlayer to play a music file, my code has no errors however when I run the program, nothing happens. Why?
public static void main(String[] args)
{
...
In my case , I have coins that the user collects. I want to be able to, when the user collects a coin, it's place to be replaced by a grass sprite. This is represented by the char "g" in the map .txt...