just a heads up I’m bad at explaining things but here we go
so what I’m trying to do is make it so two piano notes play one after each other at different pitches
when the game opens it should be as simple as clicking the A key to load the notes and then clicking D to play them then there should be a high note then a low note relatively quickly after.
as I mentioned above it should be as simple as clicking the A key to load the notes and then clicking D to play but when D is pressed both notes play at the same time, the one that was supposed to be the second plays at the start and end its only supposed to be playing at the end
Also, you want to set the global boolean playing to false as the first action. Otherwise the event will be repeatedly run until the variable changes to false. Doing this will eliminate the need for a trigger once condition.
note_time may start off with a value of 1 but it gets set to 0 pretty much straight away. Then both notes will get played at the same time because playing is set to true and the wait is for 0 seconds.
Also, why have it repeat 10 time? The first time round, note_time is set to 0 and so the subsequent 9 loops are ignored.