#๐ some weird problem
56 messages ยท Page 1 of 1 (latest)
@unreal yew
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.
anyone for help please
ok i just gave it to copilot to trview and change something in the controls and it changed some other things that i fixed but ok ididn't see that
I can't actually run your code because of all the image references
so right now I'm just replacing them with my own this might take a bit
ok so uh
this is the hitbox for your attack
and you want to change its range right
and i don't understand but even when i reduce the offset he just attacks in the same range but from his back
ye
ok i think you are a bit confused about something
let me draw a picture because I'm bad at explaining stuff lol
if you reduce the offset then the attack will be closer to the player
and if the offset is negative then it will be behind the player
oh ok
so how to change the range because i thougght that it was the thing changing the range lol
which attack do you want to change the range for?
because if you try the code the attack has a very longr-ange
both
i just want to understand how to change it
alright
sorry its taking me a while to read all of this code and figure it out ๐
no prob
i think i shoul simplify it if i could because it's a litlle complicated in the way i wrote it i guess
where in the code is the normal attack being rendered...?
i can't find it for some reason and i feel dumb
ok i thought i figured it out
but i actually didn't
and i have no idea what your code is doing
where are the attacks being rendered??
i think you should change this (sorry but i'm currently not using a mouse)
oh yeah thats right
you can do this to make it easier to see whats happening
to change the size of the attack
you just need to change the 300 and the 80
attack_rect = pygame.Rect(x, y, width, height)
idk if that helps at all
no differenc even when i change it lol
i found it and it worked
lol
but not correctly no way
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.