Im making a endless runner and im trying to make a boss spawn after a certain distance. Ive been following the tutorials for the endless runner on youtube and ive been trying to spawn him in the same way that I spawn in right and left turns, but I seem to have a problem.
This is my script for adding the boss monster, and im trying to make him spawn in after 10 tiles at the moment.
My problem at least what I think is that after I spawn a right or left turn, it resets the strait run to 0 which means following my logic it will be impossible to reach 10 strait tiles. Any way I can get around this? Keep as simple as possible im new to this