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
mojo domo wrote:i dont understand
==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(animpos ==2) //animpos counts from 0
{//play the sound}
if(animindex==1 && animpos==2)//animindex being animation
{
playsound("footstep1.wav",1,1,1);
}
Game A Gogo wrote:when he would be standing, it would repeat it uselessly. and it would play it more then once
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.
draw_from("something",(int)player.x,(int)player.y,1);
Users browsing this forum: No registered users and 1 guest