12-07-2014, 04:37 AM
Can you add something like that?
http://en.wikipedia.org/wiki/Repetition_(music)
So we can add A and B to spesific locations and enter a loop number, so player repeats those parts and continues playing.(like A-B repeating) That would be great.
Some algorithms i can think about it:
New objects named "repeater-A" and "repeater-B".
RepeaterA object contains two vars, "pos" and "repeaterBpos". pos is position and repeaterBpos is the position of the repeaterB object.
RepeaterB object contains "pos", "repeaterApos", "loopCount", "looped"
"loopCount" is the user defined loop count. "loopLeft" is counter of how many times that part looped. This will reset to 0 everytime we start playing.
When player hits a repeaterB object,
if( playerB.looped < playerB.loopCount )
{
player.goTo( repeaterB.repeaterApos );
playerB.looped++;
}
http://en.wikipedia.org/wiki/Repetition_(music)
So we can add A and B to spesific locations and enter a loop number, so player repeats those parts and continues playing.(like A-B repeating) That would be great.
Some algorithms i can think about it:
New objects named "repeater-A" and "repeater-B".
RepeaterA object contains two vars, "pos" and "repeaterBpos". pos is position and repeaterBpos is the position of the repeaterB object.
RepeaterB object contains "pos", "repeaterApos", "loopCount", "looped"
"loopCount" is the user defined loop count. "loopLeft" is counter of how many times that part looped. This will reset to 0 everytime we start playing.
When player hits a repeaterB object,
if( playerB.looped < playerB.loopCount )
{
player.goTo( repeaterB.repeaterApos );
playerB.looped++;
}