if(distance(x,y, player.x, player.y)
{
PlaySound... // this sound shouldn't constantly be playing, it should only play through once, smoothly
}
if(distance(x,y, player.x, player.y)
{
ChangeAnimation("Event Actor")... // this should just change once, it shouldn't be trying to constantly change animations, I've tried just putting animindex=... but it didn't work for whatever reason.
}
int dist=distance(x,y, player.x, player.y);
if(dist<=10) //would activate when distance is within 10 pixels or less of player
{
PlaySound... // this sound shouldn't constantly be playing, it should only play through once, smoothly
}
if(disance(x,y,my.x,my.y)==32)
{
//code here
}
in dist=distance(x,y, player.x, player.y);
if(dist<=10) //would activate when distance is within 10 pixels or less of player
{
PlaySound... // this sound shouldn't constantly be playing, it should only play through once, smoothly
}
Users browsing this forum: No registered users and 1 guest