Soundquestion

Talk about making games.

Soundquestion

Postby wsc24 » Wed Mar 26, 2008 11:28 am

Hello people (and especially the sound experts),
Anybody knows a way, as I have a player the sound of walking affix?

Thank you ever

wsc24

:)
Submarine Projekt for smartphone ready!
User avatar
wsc24
 
Posts: 51
Joined: Tue Jan 22, 2008 9:18 am
Location: 51deg,23min,38.31sec N // 12deg,00min,15.47sec E
Score: 2 Give a positive score

Re: Soundquestion

Postby stevenp » Wed Mar 26, 2008 12:09 pm

i dont understand :?
User avatar
stevenp
 
Posts: 403
Joined: Sat Dec 22, 2007 12:49 pm
Location: canada, ontario
Score: 16 Give a positive score

Re: Soundquestion

Postby wsc24 » Wed Mar 26, 2008 1:08 pm

mojo domo wrote:i dont understand :?


Hi Mojo,
Probably the bane of Google.
Since I am not good English can be, I use Google to translate. I try again.

An Actor goes with the arrow keys control to the right or left or, if no button pressed hi stopped.
Whenever he goes, the sound of his steps be heard .... Tap, tap, tap.
Wsc24
Submarine Projekt for smartphone ready!
User avatar
wsc24
 
Posts: 51
Joined: Tue Jan 22, 2008 9:18 am
Location: 51deg,23min,38.31sec N // 12deg,00min,15.47sec E
Score: 2 Give a positive score

Re: Soundquestion

Postby Kalladdolf » Wed Mar 26, 2008 6:41 pm

oh, so do you want a sound effect for footsteps, or the script how to make the sound only play when you walk?

also, willst du einen sound effect oder wissen, wie man den in GE einbaut? Also einen script?
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: Soundquestion

Postby wsc24 » Thu Mar 27, 2008 7:50 am

==Kalladdolf== wrote:oh, so do you want a sound effect for footsteps, or the script how to make the sound only play when you walk?

also, willst du einen sound effect oder wissen, wie man den in GE einbaut? Also einen script?


If it is easy to make is just a tip
If it is complicated, I prefer a Tut, so I know a background.
If it does not, there would be a Tut script is the best solution
Thank you
Wsc24

Wenn es einfach zu machen ist eigentlich nur einen Tip
Wenn es komplizierter ist wäre mir ein Tut am liebsten, damit ich die Hintergründe kennenlerne.
Wenn es kein Tut gibt wäre ein script die beste Lösung
vielen Dank
wsc24

For this translation was the familiar Google tool.
Submarine Projekt for smartphone ready!
User avatar
wsc24
 
Posts: 51
Joined: Tue Jan 22, 2008 9:18 am
Location: 51deg,23min,38.31sec N // 12deg,00min,15.47sec E
Score: 2 Give a positive score

Re: Soundquestion

Postby Kalladdolf » Thu Mar 27, 2008 8:36 am

basically if you want your player to go tap-tap, just make him play the "tap" sound when he's reached a certain frame of his walking animation.
for example:
your walking animation has 5 frames.
at the 3rd frame it looks like your player touches the floor with 1 foot.
example:
tap.jpg


at this frame you want him to play the tap sound.
the code would be:
Code: Select all
if(animpos ==2) //animpos counts from 0
{//play the sound}


this goes only for the walking animation.
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: Soundquestion

Postby wsc24 » Thu Mar 27, 2008 9:31 am

Vielen Dank Kall,
manche Dinge sind sehr einfach wenn mann weiß wie es geht

wsc24

For translating use Google
Submarine Projekt for smartphone ready!
User avatar
wsc24
 
Posts: 51
Joined: Tue Jan 22, 2008 9:18 am
Location: 51deg,23min,38.31sec N // 12deg,00min,15.47sec E
Score: 2 Give a positive score

Re: Soundquestion

Postby Game A Gogo » Thu Mar 27, 2008 9:43 pm

Code: Select all
if(animindex==1 && animpos==2)//animindex being animation
{
    playsound("footstep1.wav",1,1,1);
}

something like that would prevent if another animation has some frames also
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: Soundquestion

Postby wsc24 » Fri Mar 28, 2008 8:41 am

Thank Game A Gogo,

We are also rewarded with a point.

Thank you

8)

wsc24
Submarine Projekt for smartphone ready!
User avatar
wsc24
 
Posts: 51
Joined: Tue Jan 22, 2008 9:18 am
Location: 51deg,23min,38.31sec N // 12deg,00min,15.47sec E
Score: 2 Give a positive score

Re: Soundquestion

Postby Freddy » Fri Mar 28, 2008 7:37 pm

You can also do...
colison (anyside of ground, do not repeat while colliding) -> play sound "tap"
:D
Hola
User avatar
Freddy
 
Posts: 548
Joined: Sat Jun 02, 2007 3:42 pm
Location: Why do you want to know?
Score: 14 Give a positive score

Re: Soundquestion

Postby Game A Gogo » Fri Mar 28, 2008 10:00 pm

when he would be standing, it would repeat it uselessly. and it would play it more then once
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: Soundquestion

Postby Freddy » Sat Mar 29, 2008 12:34 am

Game A Gogo wrote:when he would be standing, it would repeat it uselessly. and it would play it more then once

No, because the reapeat while colliding is turned off.
Hola
User avatar
Freddy
 
Posts: 548
Joined: Sat Jun 02, 2007 3:42 pm
Location: Why do you want to know?
Score: 14 Give a positive score

Re: Soundquestion

Postby Game A Gogo » Sat Mar 29, 2008 4:55 am

and this is were my theory comes in :3
Since x and y are floating point values and not integer, they can go between pixels (like .5, but they are rounded up) so their value can be changed without any visual change.
And then, you add gravity to your character. like lets say yvelocity+=.4 :3 that wouldn't be enough to cause visual change. but it would still be moving up and down between the pixels on the platform, the collision check will do it before the output data is rounded up, so it will check with the floating values, so making it collide on and off without you seeing :3 just because the yvelocity will keep trying to move lower.
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: Soundquestion

Postby speckford123 » Sun Mar 30, 2008 8:02 pm

Game A Gogo wrote:and this is were my theory comes in :3
Since x and y are floating point values and not integer, they can go between pixels (like .5, but they are rounded up) so their value can be changed without any visual change.
And then, you add gravity to your character. like lets say yvelocity+=.4 :3 that wouldn't be enough to cause visual change. but it would still be moving up and down between the pixels on the platform, the collision check will do it before the output data is rounded up, so it will check with the floating values, so making it collide on and off without you seeing :3 just because the yvelocity will keep trying to move lower.



i think sortof an example of this is my demos using the canvas where you see the characters shake a bit from the gravity, mainly because the canvas isnt designed to prevent this and just draws them rounded up or down :P

well, i could just add a code to fix this...........you've gave me a alot to think about :lol:
speckford123
 
Posts: 334
Joined: Fri May 05, 2006 6:33 pm
Score: 49 Give a positive score

Re: Soundquestion

Postby Game A Gogo » Sun Mar 30, 2008 8:12 pm

yes yes, perhaps using something like
Code: Select all
draw_from("something",(int)player.x,(int)player.y,1);


since (int) will make the var super round down (it just erases the decimals)
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Next

Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron