Jonno
Member
Is there any way to get the x,y position of an object within a view rather than the whole room?
I've written some code where the jump sound pitch alters with the height position of the player
jumpSound = view_hview / y / 3
if (isJumping) || (isFalling)
{
audio_emitter_pitch(audioEm, jumpSound)
audio_play_sound_on(audioEm, sndJump,false,10);
}
This code used to work great when I had the game set in different rooms, but I've since decided to make it 2-player split screen, and obviously I've had to merge all rooms into one large one.
The problem is now, that the y value of the player can get extremely low, due to the lowest value of the room's y.
Any thoughts?
I've written some code where the jump sound pitch alters with the height position of the player
jumpSound = view_hview / y / 3
if (isJumping) || (isFalling)
{
audio_emitter_pitch(audioEm, jumpSound)
audio_play_sound_on(audioEm, sndJump,false,10);
}
This code used to work great when I had the game set in different rooms, but I've since decided to make it 2-player split screen, and obviously I've had to merge all rooms into one large one.
The problem is now, that the y value of the player can get extremely low, due to the lowest value of the room's y.
Any thoughts?