Level keeps restarting iteself in specific moments

Hi there! I would like you ask for a little bit of a help with my project.

I wanted to achieve endless level by spawning & destroying an actor in a loop. It works fine, however, at some specific moments the level just restarts itself. If someone would have some ideas why is it happening and how can I debug it to see where’s the problem - I would highly appreciate it!

Along with the message, I’m attaching two videos:

  • 1st one shows when the restart moments occur
  • 2nd one presents another problem that might be related to the first one. Sometimes from time to time my ball is bumped into the air. No idea why is it happening, the tiles should be perfectly aligned to each other.

Four screenshots:
They are showing how the process of spawning tiles looks like in the Blueprint (process is triggered from C++ via Event Tile Spawn Trigger) and basic setup of the actor’s components etc.

Couldn’t attach directly into the post - here are links to hosted files

1st video.mp4

2nd video.mp4

1st screenshot.png
Zippyshare.com - Free File Hosting
2nd screenshot.png
Zippyshare.com - Free File Hosting
3rd screenshot.png
Zippyshare.com - Free File Hosting
4th screenshot.png
Zippyshare.com - Free File Hosting

If any additional information are needed, please poke me. Thank ya all in advance!

Hey there @WavingKitku! Welcome to the community! So this is a bit of an odd one. I’ve never seen the level restart command come out of nowhere. Do you have any game logic that does call for a level restart? Is it possible for it to be being triggered prematurely?

(Also next time if you could upload to Youtube, vimeo, or google drive, zippyshare is nigh unusable for users without adblockers. It’s a malware pit for the unawares)

1 Like

Hey @SupportiveEntity! Thank you for the tip about posting attachments, for sure will do it in this manner next time!

If it comes to the problem - if the restart command is not something common, that’s actually a big help already (I’m super new to this stuff, so didn’t know). And yeah, I’ve got another class and blueprint created from it, that is responsible for restarting the level, when User’s character overlapping it. However, as far as I know it is not Used anywhere currently and does not refer to current elements.

I’m gonna review whole content and will try to see any dependencies of the class with restart command. Thank you so much, will post any results as soon possible!

Holy moly, I’m such a dumbass! I was trying to figure out spawn of the tiles for so long, that I have completely forgot that I was experimenting with ways to kill User’s character - in order to achieve that, I set up restart trigger while hitting objects under specific directions XD

@SupportiveEntity thank you so much for the tip with the “odd restart command”, pheew!

1 Like

Ahh there you go! Don’t worry, happens all the time. Just the other night I wrote up a whole combat subsystem, fell asleep, woke up and wondered who wrote it and how it worked.

1 Like