Undertale colors I made this game to show how the orange and blue clones work in undertale but it is not really working can some one help?
Your code is quite unoptimised (no offence.) I believe you should check for your characters velocity.
For example, when you overlap with the orange beams, check if you’re velocity is 0, if so, call the death/ending cutscene. If your velocity if more or less than 0, nothing should happen.
For the blue; when you overlap with them, do the same thing, except the other way around. For example, if your velocity is 0, your safe, and nothing happens, but if your velocity isn’t 0, call the ending scene.
Another piece of advice I would give you is that you’re currently making a 50% chance for orange beams to show up, and a 70% for blue beams. To fix this, you simply want to have the 50% chance for one type to show up, and istead of putting the other inside an else if block, just put it inside the else.
Hope this helps!