Hello there, folks. I apologize in advance for how loaded of a question this is, but if someone could lend a hand, I would be deeply appreciative.
For a university assignment, I was tasked to program a Pac-Man clone in Unity, and I have been told I am allowed to use a guide on this. So far, most of the coding has gone well, but I am running into an issue on video 11 in the guide playlist. There are nodes that the ghosts are supposed to move to when the boolean value testRespawn is checked true, which the guide showcases around the 11:24 timestamp, but this sequence never happens for my project.
I have attempted to see if the function where this occurs is called correctly by using Debug Logs, but those do not print in the console and I'm not sure why. My code is almost 1 to 1 with the guide's scripts, the sole differences being the resolution of the game, tile sizes (as per the art team's specifications) and a few variable names, all of which have seemingly been accounted for in my scripting.
Unfortunately, the source code in the video has not been posted. However, I do have links to my code on Pastebin, the playlist for the guide I am following, the specific video I have reached in the playlist and a video of the bug in the Unity Editor provided below.
Again, I apologize for how much there is to sift through in this question, but if anyone has advice, I would be very thankful to hear it! 👍
Pastebin Code Links:
- EnemyController: https://pastebin.com/ABNtiUcd
- MovementController: https://pastebin.com/9j4pheCp
- PlayerController: https://pastebin.com/L2XS6Jc7
- NodeController: https://pastebin.com/MgSz7X3L
- GameManager: https://pastebin.com/eM0WVdGb
YouTube Guide Playlist Link:
https://youtube.com/playlist?list=PLHrN7HL-00e8HECYZFE-9i9Qf_SRqWxZh&si=mxtC1JmzxwPSEBtP
YouTube Guide Video (11th in Playlist Above):
https://youtu.be/QpBoIxxkrw4?feature=shared
Unity Version: 2021.3.22f1
Welcome to part 11 of our Unity 2D tutorial where we are building Pacman!
Assets:
https://drive.google.com/drive/folders/1RdJQ3S0F-iW3wkb2yQbfxGlVvTMS6Gik?usp=sharing
Thanks for watching, if you enjoyed, don't forget to like and subscribe for anything Brilliant!
Where else can you find us?
https://www.brilliantlabs.ca/
https://twitter.com/br...