Hello! I have the below piece of code. Basically, I have a "game" that I'm working on (right now i'm doing the basic functionalities) and after spliting a single py file (ill share it in the thread) into multiple, I'm no longer able (maybe due to lack of knowledge) to make a 3rd person perspective. At some point I've ended up having 3 models on the same character, 2 static and the 3rd one having the intended animations but place wrongly into terrain.
#π Ursina Engine - 3rd Person like perspective using FirstPersonController
14 messages Β· Page 1 of 1 (latest)
@fallow stump
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Closes after a period of inactivity, or when you send !close.
the initial "single py file" that I've mentioned in the thread (entire "game): https://paste.pythondiscord.com/MY6Q
Let me know if are required to share the other files of the project. but i believe the problem is from player.py that I've made since I've basically created a class there.
This is not something that can be figured out by merely glancing at some code.
You need to put bunch of debug logs everywhere relevant and understand what's not happening as intended.
this is about time you move away from print-debugging and setup a proper logging system with logging library
this is what I've kinda just achieved by making this:
https://paste.pythondiscord.com/KZ6A
The problem here is that now I have two models. are rendered wrongly (the legs and the hands are weird) also, the ray attached to the model that is far from me. ouff. so frustrating π¦
loggin library? ill look for it. Thank you! didn tknow
once you have some educated guesses on which parts could be the issue, you will want to use breakpoint function
the official documentation for logging library includes a handy tutorial on how to use it
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.