# Transitions are going to random markers

**URL:** <https://qa.fmod.com/t/transitions-are-going-to-random-markers/13010>\
**Category:** FMOD Studio\
**Created:** [March 2, 2017, 2:56am UTC](https://qa.fmod.com/t/transitions-are-going-to-random-markers/13010 "2017-03-02T02:56:05Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![lbyrd2](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@lbyrd2](https://qa.fmod.com/u/lbyrd2)\
**Post date:** [March 2, 2017, 2:56am UTC](https://qa.fmod.com/t/transitions-are-going-to-random-markers/13010/1 "2017-03-02T02:56:05Z")

</div>

I’m currently working on a track that has eight sections, and at the end of each section it transitions to another section at random, unless the player dies in which case it transitions to the end of the track. I set it up so that sections can transition to any other section randomly using the technique from this answer: [https://www.fmod.org/questions/question/multiple-endings-trigger-by-probability](https://www.fmod.org/questions/question/multiple-endings-trigger-by-probability)  
But it was sometimes transitioning to the same section, and after some testing I found that each transition was transitioning to any random marker except for the death marker. I have tried renaming the markers, as well as deleting and remaking both the markers and the transitions, but the error still occurs. Is there a limit to how many transitions can be in a single event or is something else the problem?

---

<div class="post-metadata">

**Author:** ![lbyrd2](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@lbyrd2](https://qa.fmod.com/u/lbyrd2)\
**Post date:** [March 3, 2017, 12:50am UTC](https://qa.fmod.com/t/transitions-are-going-to-random-markers/13010/2 "2017-03-03T00:50:23Z")

</div>

> [@](#):
>
> I’m currently working on a track that has eight sections, and at the end of each section it transitions to another section at random, unless the player dies in which case it transitions to the end of the track. I set it up so that sections can transition to any other section randomly using the technique from this answer: [Multiple Endings - trigger by probability? - FMOD Studio - FMOD Forums](https://www.fmod.org/questions/question/multiple-endings-trigger-by-probability)  
> But it was sometimes transitioning to the same section, and after some testing I found that each transition was transitioning to any random marker except for the death marker. I have tried renaming the markers, as well as deleting and remaking both the markers and the transitions, but the error still occurs. Is there a limit to how many transitions can be in a single event or is something else the problem?

14, 17, 20, 25, 33, 50 is the bottom so that it’ll just to to the next section of the track. The problem is that even if there’s only one transition there it’ll transition to any random marker except for the death one.

---

<div class="post-metadata">

**Author:** ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)\
**Post date:** [March 3, 2017, 2:24am UTC](https://qa.fmod.com/t/transitions-are-going-to-random-markers/13010/3 "2017-03-03T02:24:04Z")

</div>

Which one of those probabilities is the death marker? Are there any other markers at the same position, perhaps hidden under one of the visible ones?

---

<div class="post-metadata">

**Author:** ![lbyrd2](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@lbyrd2](https://qa.fmod.com/u/lbyrd2)\
**Post date:** [March 3, 2017, 2:34am UTC](https://qa.fmod.com/t/transitions-are-going-to-random-markers/13010/4 "2017-03-03T02:34:59Z")

</div>

The death transition is a separate transition that has a 100% chance if the death variable is set to 1. There definitely aren’t any hidden markers as I have deleted and remade all of them.

---

<div class="post-metadata">

**Author:** ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)\
**Post date:** [March 3, 2017, 2:51am UTC](https://qa.fmod.com/t/transitions-are-going-to-random-markers/13010/5 "2017-03-03T02:51:38Z")

</div>

Is the death transition marker located above or below the other transition markers?

---

<div class="post-metadata">

**Author:** ![lbyrd2](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@lbyrd2](https://qa.fmod.com/u/lbyrd2)\
**Post date:** [March 3, 2017, 2:55am UTC](https://qa.fmod.com/t/transitions-are-going-to-random-markers/13010/6 "2017-03-03T02:55:49Z")

</div>

It is above the other markers.

---

<div class="post-metadata">

**Author:** ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)\
**Post date:** [March 3, 2017, 3:03am UTC](https://qa.fmod.com/t/transitions-are-going-to-random-markers/13010/7 "2017-03-03T03:03:17Z")

</div>

Hmm. Markers are evaluated from top to bottom, so if it’s above the other markers, the other markers shouldn’t affect it in any way. What parameter range is the death transition marker’s parameter condition set to?

---

<div class="post-metadata">

**Author:** ![lbyrd2](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@lbyrd2](https://qa.fmod.com/u/lbyrd2)\
**Post date:** [March 3, 2017, 3:05am UTC](https://qa.fmod.com/t/transitions-are-going-to-random-markers/13010/8 "2017-03-03T03:05:08Z")

</div>

0.51 - 1.00, and the random transitions are only happening when the variable is less than that.

---

<div class="post-metadata">

**Author:** ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)\
**Post date:** [March 3, 2017, 3:10am UTC](https://qa.fmod.com/t/transitions-are-going-to-random-markers/13010/9 "2017-03-03T03:10:00Z")

</div>

Does the cursor just sail past the markers when the parameter is set to, say, 0.6? Or does it stop and sit on the markers without moving anywhere?

---

<div class="post-metadata">

**Author:** ![lbyrd2](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@lbyrd2](https://qa.fmod.com/u/lbyrd2)\
**Post date:** [March 3, 2017, 3:12am UTC](https://qa.fmod.com/t/transitions-are-going-to-random-markers/13010/10 "2017-03-03T03:12:13Z")

</div>

The death transition is working perfectly fine, the problem is the other transitions are randomly going to any marker except for the death one. This isn’t the biggest problem but i’d like to make it so that it doesn’t replay the same section twice in a row.

---

<div class="post-metadata">

**Author:** ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)\
**Post date:** [March 3, 2017, 12:06am UTC](https://qa.fmod.com/t/transitions-are-going-to-random-markers/13010/11 "2017-03-03T00:06:22Z")

</div>

What are the probabilities of the markers at your logic point, from top to bottom?

---

<div class="post-metadata">

**Author:** ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)\
**Post date:** [March 3, 2017, 3:16am UTC](https://qa.fmod.com/t/transitions-are-going-to-random-markers/13010/12 "2017-03-03T03:16:23Z")

</div>

Oh! I see. Sorry, I misunderstood your original post. Am I right in saying that you want to prevent any transition marker with a probability condition from triggering twice in a row?

---

<div class="post-metadata">

**Author:** ![lbyrd2](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@lbyrd2](https://qa.fmod.com/u/lbyrd2)\
**Post date:** [March 3, 2017, 3:20am UTC](https://qa.fmod.com/t/transitions-are-going-to-random-markers/13010/13 "2017-03-03T03:20:43Z")

</div>

The problem is that I have markers labelled 1 through 8 at the start of each section, and at the end of each section it’s set up so that it will either transition to any numbered marker except for the one it was at last (2 can’t go to 1, 3 can’t go to 2, etc.), or just go to the next section of the track. But for some reason all of the transitions going to numbered markers are going to random numbered markers instead of the ones that are set as their destination.

---

<div class="post-metadata">

**Author:** ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)\
**Post date:** [March 3, 2017, 3:30am UTC](https://qa.fmod.com/t/transitions-are-going-to-random-markers/13010/14 "2017-03-03T03:30:52Z")

</div>

Ah, you have multiple logic points? Hmm. Could you post a screenshot of your event’s logic track? I might be able to spot the problem.

---

<div class="post-metadata">

**Author:** ![lbyrd2](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@lbyrd2](https://qa.fmod.com/u/lbyrd2)\
**Post date:** [March 3, 2017, 3:35am UTC](https://qa.fmod.com/t/transitions-are-going-to-random-markers/13010/15 "2017-03-03T03:35:06Z")

</div>

[[Album] Imgur ![](https://i.imgur.com/ufrlnY0.jpg?fb "Imgur") ](https://imgur.com/a/V37jV)

I couldn’t figure out how to enlarge the logic track window so I had to take 2 screenshots

---

<div class="post-metadata">

**Author:** ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)\
**Post date:** [March 3, 2017, 4:34am UTC](https://qa.fmod.com/t/transitions-are-going-to-random-markers/13010/16 "2017-03-03T04:34:41Z")

</div>

Hmm… Some of your destination markers look like they may have the exact same timeline positions as nearby transition markers. You’ve probably given some of them a very small offset, but if there’s any you missed, it could easily result in the behaviour you describe.

Check that each of the destination markers is at a timeline position at least one millisecond to the right of the destination markers above it. To check the exact position of a logic marker, right-click on the marker and select “Move To…” from the context menu. If any of them does not have such an offset, give it one, then try auditioning your event again.

---

<div class="post-metadata">

**Author:** ![lbyrd2](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@lbyrd2](https://qa.fmod.com/u/lbyrd2)\
**Post date:** [March 3, 2017, 4:41am UTC](https://qa.fmod.com/t/transitions-are-going-to-random-markers/13010/17 "2017-03-03T04:41:22Z")

</div>

> [@](#):
>
> Hmm… Some of your destination markers look like they may have the exact same timeline positions as nearby transition markers. You’ve probably given some of them a very small offset, but if there’s any you missed, it could easily result in the behaviour you describe.
> 
> Check that each of the destination markers is at a timeline position at least one millisecond to the right of the destination markers above it. To check the exact position of a logic marker, right-click on the marker and select “Move To…” from the context menu. If any of them does not have such an offset, give it one, then try auditioning your event again.

Thanks, that completely fixed it! I’m new to FMOD and it never occurred to me that it’d be hitting transitions on the millisecond it’s transitioning to.
