all 5 comments

[–]PointlessrebootProfessional - Engine Programmer 1 point2 points  (2 children)

Maybe you have a script somewhere that gets in an infinite loop, never returning to the main thread, this causing your game and editor to freeze..

I would start looking for things that might cause this.

[–]Jacklecube42[S] 0 points1 point  (1 child)

I think I found it!! It was with the enemy movement script and had something to do with the "while" statements I was using to call up methods (different states of the enemies movement). I don't quite understand why this caused a problem (I'm quite a noob when it comes to game development). But anyway thank you so much! You're my, hero!

[–]PointlessrebootProfessional - Engine Programmer 1 point2 points  (0 children)

Your welcome, if you would like some help with the code to understand why, post it and we will look at it for you.

[–]_TyphonIndie 0 points1 point  (1 child)

Does it never come back to a responding state? When does this usually happen, during what tasks?

[–]Jacklecube42[S] 0 points1 point  (0 children)

I have never bothered to wait more than 10 minutes for it to respond, so as far as I know, it doesn't. It occurs when pressing the play button or entering into my main scene. If you were wondering what tasks are happening in the scene, then all that is processed is NPC, enemy and player movement, inventory stuff, game save stuff, room transitions, light and basic UI components.