So I’m making a super smash bros-like game, but am trying to figure out how to code hitstop when the opponent is hit. I have watched youtube tutorials talking about how Time.timescale can slow the entire game, but i discovered that it doesn’t affect frame rate. So basically I want only that one gameobject(opponent) to freeze for 0.1s, such that its rigidbody and all components freeze, plus the next frame of code only runs after it has finished waiting for 0.1s, but I can’t find a way to do that. Other than just deactivating all components and modifying the code such that it skips a few frames, what other methods can I use?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Single hit pause | 2 | 2985 | May 22, 2012 | |
Freeze the game for a few frames. | 1 | 2888 | October 26, 2013 | |
How to make unity3d stop for seconds? | 12 | 2984 | October 29, 2011 | |
How to make some GameObjects not affected by timescale? | 4 | 23213 | January 4, 2019 | |
How to achieve hit pause in 2d games, like street fighter does | 1 | 1864 | May 26, 2016 |