Welcome to DG47Studios! This channel will be primarily focused on everything around game development! This includes either videos about game dev or tutorial videos aimed to help beginners find their way! If you enjoy, please consider subscribing and sharing this channel! Follow me on Twitter - @DashGames47 My Patreon - patreon.com/DashGames47
Here is a less spaghetti code: on Interaction script fire this function: bool isOpen; void DoorRotate() { Animator anim = this.GetComponentInParent<Animator>(); anim.SetBool("IsOpen", isOpen); isOpen = !isOpen; } and in the animator set the bool variable's name to IsOpen<---here capital matter Animator:- {idle} condition = IsOpen(false)disable exit time [between idle and open] ->{open} condition = IsOpen(true)--disable exit time->close [between open and close] ->{close} condition = enable has exit time [between close and idle] bool in interaction scrip if false by default and in the animator is true by default
You'll need to use separate animations for every door (just repeat what you did with the first door) as the doors you have now are using the same animator controller
@@magplay15 You can use the same script! Just need a different animator controller for each door (im pretty sure, its been a long time since i had this video)
apologise for the late reply, have you made sure it is a buttonTMP under the UI category? also have you made sure to assign the buttons to the functions?
Hi, I believe now that there are more roads to Rome, compare the ground to the player or the player to the ground. Is jumping or Is walking. It's a new way of thinking, which is good for our creativity, but there is always another way to doing things aparently..... Btw, I'm still thinking of messing around a bit with Scratch just to get my head around the basics of programming. Anyway, glad to have found your channel. Jake #9
indeed! there are different ways of doing a ground check like using raycasts, but i try to aim to keep everything as simple as possible so new unity users can follow along!
Hi, sub #9 here, I'm finally starting my Unity journey and it's a steep learning curve so far. The old X=X+1 is no more... haha ;-) I wonder if you could make an example for new people like me. Just with transform, how to move a sprite, and then how to rotate and change the size. Mostly to make the connection between the inspector and the code. Of cause I also have to put in the time, and just check as much vids and shorts as possible, but as a beginner it hard to see the logic in it all. Cheers from Holland and glad to have found your channel. Jake.