Forum begins after the advertisement:
-
::I currently have an issue when standing on the spikes causing my game to stop running is there a way to get around this ? let me know if i have to submit any code or videos
::Ive done some more testing and when i make the spikes instantly kill my player there are no issuses it only seems to be when i want my player to not be one hit by them that it causes a crash
::For spikes causing the game to freeze, this is caused by “IEnumerator RespawnPoint()” in Spikes.cs scaling time to 0 and using “WaitForSeconds”.
Simply, change all “WaitForSeconds” codes in Spikes.cs to “WaitForSecondsRealTime”. This allows the enumerator to continue as intended while in stopped time without freezing the game.
Advertisement below: