The game freezes when the actor squeezed by other actors.

alexsilent

  • Posts: 197
My Game is Absolutely freezes when the actor pressed down by objects.

What should I do, the game have a lot of moving objects by scripts?!



OK! I FOUND THE BUG!
If the game level have ONLY one actor with ENABLE CONTINUOUS Collision
then it's causes freezes all the game, when the any actor pressed down (Squeezed, jammed) by other actors.




I JUST REMOVED "ENABLE CONTINUOUS Collision" from monkey (and all other objects), AND FREEZES will stop.

djip123

  • Posts: 982
Can you send a copy of the game to me in PM then i will fix it for you. Its very hard to fix out from a single image.
Go check out my website: http://gamecow.net

rob1221

  • *
  • Posts: 9472
Are the blocks set to "cannot be pushed"?  If so, changing that setting to "normal" might help.

alexsilent

  • Posts: 197
Thank You so much guys!! I found the problem!!
It's very need to read by Jon or other Developers of STENCYL!! I think it's a very interesting bug.



PS Sorry for my bad english!!
If the game level have ONLY one actor with ENABLE CONTINUOUS Collision
then it's causes freezes all the game, when the any actor pressed down (Squeezed, jammed) by other actors.


I JUST REMOVED "ENABLE CONTINUOUS Collision" from monkey, AND FREEZES will stop.

alexsilent

  • Posts: 197
There is my version for testing (Stencyl Source Game (~700 kb))!
http://dl.dropbox.com/u/37208840/TestWall.rar

It's causes the freezes, when you trying stuck between moving walls.
But try to remove the "Enable Continuous Collisions" from monkey, and freezes will stop!

sentenza

  • Posts: 55
Sorry for bumping this old thread, but this just drove me crazy for days!!

I can confirm the bug and it's perfectly reproducible - whenever an actor is 'squeezed' between tho unpushable actors, or between an unpushable actor and a tile, as long as there is ANY actor on the scene with continuous collisions enabled (even if not involved in the collision in any way) the game completely freezes.

Fair Share

  • Posts: 12
I'm so glad I found this thread, I to was victim of the squeeze freeze. Clicking "No" on the Enable Continuous Collisions on all actors under Advanced Physics seemed to do the trick.

Almakos

  • Posts: 632
that may stop freezes, but continuous collisions are rather useful in some cases,..this better be fixed if possible.
Fishing Fantasy Trailer


8fifty2

  • Posts: 128
I'm having a similar problem. I'm trying to create a puzzle game that has lot of actors touching each other and pushing each other. I've turned off continuous collision on them all but im still getting a shockingly low frame rate to the point it deteriorates freezes. Any more suggestions?

Photon

  • Posts: 2691
This could simply be because you have a lot of actors on screen.

Also, I noticed in one of my earlier projects that if you stack and rest actors on top of each other, this can rapidly deteriorate framerate too. That sounds like a potential problem if you are using gravity in a puzzle game.
Do NOT PM me your questions, because I likely will not respond. If I have replied to your question on the forum, keep using that topic. Thanks!

8fifty2

  • Posts: 128
Yeah that sounds like my problem. I do have about 25 small actors resting on top of other using gravity. Darn I may have to scrap the project then. Thanks

Photon

  • Posts: 2691
Well, it IS possible to do. You probably will just have to disable physics on your pieces and custom handle placing and collisions. But puzzle games have been done like this one:

http://www.stencyl.com/game/play/11820
Do NOT PM me your questions, because I likely will not respond. If I have replied to your question on the forum, keep using that topic. Thanks!