Stopping Time (pause and collision)

jol

  • *
  • Posts: 174
Hello guys,

So I wanted to stop the time on one level. First I begun by doing stuff like "disable behavior when R is pressed then Enable behavior when etc..."

But a lot of thing didn't work and it is not a really easy way. So I searched a little bit and discover the great PAUSE function. All I needed ! So now I can pause my game but my actor is not paused so it look like I stopped time \O/.

But, when I pause the game, moving actors didn't have collision, well it is strange, they have collision but I can go through them like if they was composed of thick liquid. I can jump on/in it but I fall through them.

How can I have normal collision box with the pause function ?

dtrungle

  • Posts: 1938
I haven't touch the pause feature yet but I can understand where your problem is coming from. Most likely, you will need to simulate your own "stop" feature by changing the speed of everything on screen to a lower value. I highly doubt that the default pause feature was designed for a slow-motion effect. I could be wrong.

jol

  • *
  • Posts: 174
Thanks you for you answer, I don't want a slow motion effect, only normal collision on actors when the game is paused (right now I can fall trough paused actors).

dtrungle

  • Posts: 1938
I don't quite understand, if you use the default pause feature, shouldn't it pause everything? Is this what you want? To stop everything? If so, go into your actors settings -> physics -> advanced and check if it can pause. Check this setting for everything you have in the scene.

jol

  • *
  • Posts: 174
Yep, it is what I have done, and my player is moving (it is what I want) however when he is interacting with paused objects (with can be paused box checked) there is no collision while there is collision in No paused mode.

Update :
This is the problem :
https://dl.dropbox.com/u/27378084/capture-2.mp4

« Last Edit: September 05, 2012, 03:10:46 pm by jol »

dtrungle

  • Posts: 1938
Oh, I'm sure the pause feature disables everything that it affects which would disable your collisions. So, either you need to turn the pause off for those objects that need to be collided (the platforms) or you need to make your own pause effect like I suggested above. The latter would seem likely as I'm pretty much guessing for the first option.

jol

  • *
  • Posts: 174
I know what is happening, when the game is paused, and when the player touch an other actor the collision box fall under the weight of the player. Can I fix this ?


flyingninja77

  • Posts: 30
I need a similar effect for a game that I'm working on.  I'll let you know if I find anything that works.