Creating a Game Over screen with TimeScale

0 favourites
  • 5 posts
From the Asset Store
Is a circular loading screen with code ready to use. No Animation.
  • CAPX: https://www.dropbox.com/s/cb5vw9o59o2hc ... 1-1-1.capx

    Please bear with me; I'll try to keep this concise and clear.

    This is what I want to happen...

    When object MrBlue collides with objects BlockBird or Eggsplosion, the game is over.

    • All objects EXCEPT the GameOver sprite font should be set to TimeScale 0 (zero).
    • The layer "InfoScreen" should turn visible with a red tint and the GameOver sprite font should fall down with its physics property active.

    However...

    I've tried setting the TimeScale of the whole game to zero and the GameOver sprite font to 1, but that doesn't work.

    I've also tried adding all objects (except for those on the HUD layer) to a Family object and setting their object TimeScale to zero, but that doesn't stop certain objects from spawning and moving along.

    None of this is working...obviously, which is why I'm here. LOL

    The lines to check out are on 71 - that's where the game over scenario begins. Also see line 36 (the AmIDead instance variable is my attempt at an alternate solution to keep the spawn objects (off-screen) from generating new platform instances).

  • Couldn't get the first solution to work. Used the second and threw in some group disablers, let me know if that's what you wanted.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Yarfapet - LOL Well, that'll do it! I did think about using the Disable Group action, but I wanted to see if I could better understand how I can utilize TimeScale. Thank you for your time! I deeply appreciate it.

  • Rhindon No prob. As I said, I gave global timescale a shot first, but I think physics are tied to global timescale.

  • Yarfapet - That would make sense if that's the case. I'm ALWAYS eager to learn about those behind-the-scenes details as to HOW things work in C2.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)