hi... i am having a problam-
i want my character to go to the toilet whenever he is crossing the left room edge.
so- my plan was to make my character go outside the left border of the room, to play a "flush" sound, and then to go back to the room from the left border of the room.
the problam is that the FLUSH sound plays over and over again (doubled sound) until my computer crash. i am pretty sure it is due to the fact that it plays (over and over again) as long as i am outside the left edge. i want it to play only ONCE!
Code: ags
i want my character to go to the toilet whenever he is crossing the left room edge.
so- my plan was to make my character go outside the left border of the room, to play a "flush" sound, and then to go back to the room from the left border of the room.
the problam is that the FLUSH sound plays over and over again (doubled sound) until my computer crash. i am pretty sure it is due to the fact that it plays (over and over again) as long as i am outside the left edge. i want it to play only ONCE!
function room_LeaveLeft()
{
cEgo.Walk(-30, cEgo.y, eBlock, eAnywhere);
PlaySound(3);
cEgo.Walk(60 , cEgo.y);
}