-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WallManager: Use transition for wall and moles. #201
Comments
@bastianilso I'm making my tests for the transition and his duration. I tried to find the place in the code where we can define the countdown time but I didn't find it. Can you tell me where I can change this time please. |
@Xav1204 This is about transitioning the wall and the moles. Why do you need to change the countdown time? I don't recognize the screenshot you have taken a picture of, sorry. The wall is generated by For reference, the animation I show above from Trail it is created by the following function from
https://github.com/med-material/Trail-it/blob/master/Assets/Scripts/Game/GameLevel.cs#L417 For this task I suggest you check out IEnumerators and Unity animations. Hope this helps! |
I don't need to change the cooldown, it just that I want to use this variable for the duration of the transition. |
@Xav1204 Ideally the transition happens after the countdown finishes (like shown in the animation from Trail it above). Is that what you mean? The count down is controlled by If you are trying to sync the transition to the countdown, I'm not sure how it would work. I do get the idea - that it would look cool if the "wall is building up" while the player is waiting those 3 seconds. But that's not what the 3 second countdown is for - the countdown is to prepare the player to get ready to play - ideally the wall is already built, so the player can focus on just getting ready. I think it's better to keep a separate duration (a 3 seconds for a transition might be too long, typically we aim to fade for shorter periods, e.g. 500ms or so). Let me know if I misunderstood what you are trying to do. If I did, please elaborate in text, a bit more in depth what you are trying to do. |
ok thanks. I will continue my tests for this transition. |
After the in-game count-down, wallmanager generates the Whack-A-Mole wall and shows it immediately. An aesthetic improvement would be to let this transition be more gradual.
In total this animation should take less than 500ms.
The text was updated successfully, but these errors were encountered: