Sounds problem need help.

Get help using Construct 2

Post » Sun Jul 07, 2013 6:53 pm

here you go guys

http://www.scirra.com/arcade/example/6233/revolution-in-universe-test
B
7
S
2
G
1
Posts: 16
Reputation: 2,180

Post » Sun Jul 07, 2013 7:00 pm

you will notice that when the game starts a single shot is sound, this is what i want to stop.
B
7
S
2
G
1
Posts: 16
Reputation: 2,180

Post » Sun Jul 07, 2013 7:08 pm

Sorry, my fault. We need the CAPX file uploaded to somewhere like dropbox.com so we can review the code, and offer help.
ImageImageImage
B
71
S
22
G
249
Posts: 3,763
Reputation: 138,577

Post » Sun Jul 07, 2013 7:18 pm

https://dl-web.dropbox.com/get/Revolution%20in%20Universe.caproj?w=AAAL22ySEZr_TWpZLZDNAqR2l6santYEBVfXyUdLVOtlvg&dl=1

does this work?
B
7
S
2
G
1
Posts: 16
Reputation: 2,180

Post » Sun Jul 07, 2013 7:20 pm

wait i am making the whole folder a rar file to send it
B
7
S
2
G
1
Posts: 16
Reputation: 2,180

Post » Sun Jul 07, 2013 7:23 pm

here you go the whole test project

https://www.dropbox.com/s/acd10oltidaaos8/Test.rar
B
7
S
2
G
1
Posts: 16
Reputation: 2,180

Post » Sun Jul 07, 2013 7:59 pm

I looked at you program and got it working, but what exactly the problem is im not sure. However I think that your background music might be to big or something that it causes some problems. However Im not sure and if that's the exact problem.

But you can fix it like this.

1. Make that "Game_loaded = 0" variable that I mentioned.
2. And in the "Start layout at the very bottom set it to 1.
3. In the "bullet_created" add the condition "Game_loaded = 1".
(This is where it gets weird as that should work.)
4. Move the play music in the "Start layout" event to the top of where you have the others. (That's simply because it easier to work with that way )
5. In the top of the start layout before you start playing the sounds, add a preload for both sounds. Especially for the music, as its the one that's causing the problem and not the bullet sound.

That should make it work.

I would strongly suggest you to use groups and more event sheets and just include them in the main one, that will make it a lot easier for yourself to debug and work with the program, especially when it gets bigger.

Personally I would organize it like this if I were you:

Make the following event sheets:
"Enemies" - Everything that relates enemies you add here.
"Player" - Player controls, death. Weapon sounds etc.
"Game" - General game stuff, like "New game", "Exit game", "Turn on/off sound", "Playing music" and "Score"
"Scenery" - Everything that relates to the background like creation of stars etc.

In regards to using groups, its very easy to only show what you need, and to find stuff that you need.

For instant if you have a "Player" event sheet. You can make a group called "Controls" and under that group you add all stuff that relates to player control, and in the group description you can short explain what the category does.

Lets say you wanted you spacecraft to be able to do some speed boost. You could just add a new group underneath the "Control" group called "Boost" and then you have everything organised.

Anyway just an advise, as I have dumbed a lot of projects in the pass, because I didn't organize them, and at some point you simply loose track of what's happening and finding some error is really hard. nimos1002013-07-07 20:02:22
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,848

Post » Sun Jul 07, 2013 8:11 pm

thanks it works! it was the preload! thanks a lot! thanks for the advice in event sheets i didn't know you can add more!
B
7
S
2
G
1
Posts: 16
Reputation: 2,180

Post » Sun Jul 07, 2013 8:12 pm

I struggled with this too. It should have been fairly straight forward. Here's my alternate solution:

RiUalt

Preload the sound in On start of layout, and play the sound at the spawn time.

Also, you can use Save as single file, to get a CAPX file, which is your complete game for uploading.
ImageImageImage
B
71
S
22
G
249
Posts: 3,763
Reputation: 138,577

Post » Sun Jul 07, 2013 8:48 pm

thanks again!
B
7
S
2
G
1
Posts: 16
Reputation: 2,180

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 10 guests