Stencyl question

Need programming help? Want to post programming tips? Are you programming a game and want to show it off? That and more here.

Stencyl question

Postby Bogdan » August 28th, 2011, 8:34 am

I want to know how to enable the sounds in stencyl, i want to make a song that will play in some levels and some sounds like jumping and others, please help, i couldn't find out from google.
Image
User avatar
Bogdan
The Legacy

Error contacting Twitter
 
Posts: 770
Joined: February 22nd, 2011, 1:06 am
Location: Stanistan

Runouwian Fighter

Thumbs Up given: 39 times
Thumbs Up received: 98 times

Re: Stencyl question

Postby Jellonator » August 28th, 2011, 8:46 am

:facepalm:
its not hard.
follow the following instructions;
1:in the tab called game center, click on sounds
2:click on the dotted box saying:"click here to create a new sound"
3:enter a sound name like:"lolsound"
4:click "create
5:click on the ditted box saying:"click here to import a sound file"
6:"choose a sound to import(note: it must be MP3 format)
7:to the right you should see a text saying"sound type:", click on the box next to it and choose what sound type you want it to be
8:now you have a sound
9:???
10:profit
bepis lmao
User avatar
Jellonator
Code: Awesome

Error contacting Twitter
 
Posts: 342
Joined: August 28th, 2010, 6:25 am
Location: With Waldo.

Thumbs Up given: 18 times
Thumbs Up received: 42 times

Re: Stencyl question

Postby Bogdan » August 28th, 2011, 8:54 am

1) can't found sound type >_>
2) i want that sound to be PLAYED in the game
Image
User avatar
Bogdan
The Legacy

Error contacting Twitter
 
Posts: 770
Joined: February 22nd, 2011, 1:06 am
Location: Stanistan

Runouwian Fighter

Thumbs Up given: 39 times
Thumbs Up received: 98 times

Re: Stencyl question

Postby Jellonator » August 28th, 2011, 8:56 am

DUDE. ITS NOT HARD. IN THE ACTION EDITING THERE SHOULD BE A BOX SAYING "SOUNDS". YEAH. CLICK ON THAT.
bepis lmao
User avatar
Jellonator
Code: Awesome

Error contacting Twitter
 
Posts: 342
Joined: August 28th, 2010, 6:25 am
Location: With Waldo.

Thumbs Up given: 18 times
Thumbs Up received: 42 times

Re: Stencyl question

Thumbs up x1

Postby Buff_ » August 28th, 2011, 1:30 pm

In the behavior, click on the sound option. Drag the "Play - Choose Sound" option across to when you want the sound to play (so if you jump, or you're walking, or you hit an enemy etc). Click on choose sound, and then on the sound you want to play. Afterward, click on "Attach to actor" and go to the actor tab for the character you're using. On here, if the sound isn't already selected for the behavior, choose it from the drop down menu. It should now play the sound when you wanted to.


If it does not play the sound, there is something wrong with your behavior.
User avatar
Buff_
A rather stellar gentleman

Error contacting Twitter
 
Posts: 2827
Joined: August 7th, 2009, 6:48 am
Location: Under the sink

The Start of Something Big

Thumbs Up given: 10 times
Thumbs Up received: 104 times

Re: Stencyl question

Postby Jellonator » August 28th, 2011, 3:04 pm

Buff, i already explained it to him with an image. but that is accurate so i give your post a thumbs up.
bepis lmao
User avatar
Jellonator
Code: Awesome

Error contacting Twitter
 
Posts: 342
Joined: August 28th, 2010, 6:25 am
Location: With Waldo.

Thumbs Up given: 18 times
Thumbs Up received: 42 times

Re: Stencyl question

Thumbs up x1

Postby Koopa Yoshi » August 28th, 2011, 6:21 pm

Buff is right, but I suggest this:

Go to sounds, click the dotted square saying "Click here to add new sound", then import a sound file.
Next, go to behaviors, select Sounds, check "Scene Behavior", name it to anything you want, select Sounds category and click Create.

In the palette, click Sound. Drag "loop [Choose Sound] to the create block in the top left, click Choose Sound and select the sound.
Now click the "Attach to Scene" on the top right and select the scene of the level you want the sound to play in.
Done.


about dvc: show
Mario was trapped in the ancient castle of histories and memories, the past were recorded in the secret chamber of the castle, by entering it will loose the memory cells and release the memories inside, which will bring whoever in the room to past and present, or possibly the future. mario was accidently taken to the past, and will have to find the secret chamber in the castle to return to the present, however, he have three puzzles to solve. that is DOUBLE VISION CHAMBERS

Image
User avatar
Koopa Yoshi
As Ninja As Myst

 
Posts: 171
Joined: January 2nd, 2011, 2:00 pm
Location: The Black Hole so no one can come

Thumbs Up given: 5 times
Thumbs Up received: 5 times

Re: Stencyl question

Postby Jellonator » August 29th, 2011, 1:51 am

Koopa Yoshi wrote:Buff is right, but I suggest this:

Go to sounds, click the dotted square saying "Click here to add new sound", then import a sound file.
Next, go to behaviors, select Sounds, check "Scene Behavior", name it to anything you want, select Sounds category and click Create.

In the palette, click Sound. Drag "loop [Choose Sound] to the create block in the top left, click Choose Sound and select the sound.
Now click the "Attach to Scene" on the top right and select the scene of the level you want the sound to play in.
Done.

already explained that in my post.
bepis lmao
User avatar
Jellonator
Code: Awesome

Error contacting Twitter
 
Posts: 342
Joined: August 28th, 2010, 6:25 am
Location: With Waldo.

Thumbs Up given: 18 times
Thumbs Up received: 42 times


Return to Programming