This site requires JavaScript, please enable it in your browser!
Greenfoot back
Roshan123
Roshan123 wrote ...

2021/3/31

Music

Roshan123 Roshan123

2021/3/31

#
1st let the music be loaded and it should be playing in the background Then refresh the page Now notice the music is being stopped Plz tell me way to prevent it Here it goes(1st time with source code...inspired by danpost)
Roshan123 Roshan123

2021/4/1

#
Sometimes it also gives me an error that it cannot open iy
danpost danpost

2021/4/1

#
In Intro class, try replacing line 15 with
if(bgSound!=null)bgSound.stop();
bgSound=new GreenfootSound("1.mp3");
Roshan123 Roshan123

2021/4/1

#
danpost wrote...
In Intro class, try replacing line 15 with
if(bgSound!=null)bgSound.stop();
bgSound=new GreenfootSound("1.mp3");
Thanks, but what about the refresh I mean when i refresh, the music stops
danpost danpost

2021/4/1

#
Roshan123 wrote...
what about the refresh I mean when i refresh, the music stops
I said "try". Does it still stop on refresh? (it may; but test it)
Roshan123 Roshan123

2021/4/1

#
danpost wrote...
I said "try"
Oh sorry
Roshan123 Roshan123

2021/4/1

#
The error is not given anymore But now also the music is being stopped And plz download it again....i made some changes which may be a cause of my mistake
danpost danpost

2021/4/1

#
Roshan123 wrote...
The error is not given anymore But now also the music is being stopped And plz download it again....i made some changes which may be a cause of my mistake
I cannot test the downloaded project as it would need to compile missing .JAVA files.
Roshan123 Roshan123

2021/4/2

#
I hope now u can open it
danpost danpost

2021/4/2

#
Roshan123 wrote...
I hope now u can open it
Enemy tank and cannon .JAVA files still missing (4 files).
Roshan123 Roshan123

2021/4/2

#
Is it necessary?? I don't want to publish it
danpost danpost

2021/4/2

#
Roshan123 wrote...
Is it necessary?? I don't want to publish it
Without them, I cannot make any changes and have it recompile. That is, it will not compile after I make any change; so there is no way to test it.
Roshan123 Roshan123

2021/4/2

#
I remember i have given u the source code before some days of 1 month ago(the day when i was asking ur timezone...hope u remember it) If u have it then u can refer to it becaz since a long time, i haven't changed anything in those classes If u have it and it takes long time to find it then let it be I have to find another way to fix it
danpost danpost

2021/4/2

#
Roshan123 wrote...
I remember i have given u the source code before some days of 1 month ago(the day when i was asking ur timezone...hope u remember it) If u have it then u can refer to it becaz since a long time, i haven't changed anything in those classes If u have it and it takes long time to find it then let it be I have to find another way to fix it
I am sure it has been long since deleted
danpost danpost

2021/4/2

#
Roshan123 wrote...
I have to find another way to fix it
I would first comment out all of your while and do loops. If it clears up, you can start, one by one, reinstating each block to find which one(s) cause the problem. If it didn't clear up, then start commenting out more and more until it does. That should give you an idea of where to look and what might be going on.
You need to login to post a reply.