My solution to pressing L = next level

my code
I just made it so that if L is ever pressed it instantly loads the next level. The way shown on the course is much better and I will be changing it to that, but I thought it was interesting. This works in exactly the same way as on the course, just that it can’t be turned off for final build without fully removing from my script. For collison off I tried using an if statement but it didn’t work well. I could only make it so that when I was holding C collision was off. I couldn’t get it to be a toggle.


Great solution man!

Privacy & Terms