We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I've done tons of things and as far as i know this goes briefly into calculus. I am way out of my depth with this. How do i calculate the mouseX mouseY to make a shield around P1X and P1Y tied lets say 20 pixels away from the center of the player. The problem isn't the shield itself, it's making the movement work.
Answers
What do you mean by "the movement"? Do you mean you are trying to align the shield each draw, e.g.
Or do you mean you are trying to calculate collision detection of some object class against the shield?
You may need to share your code. If so, please format it correctly:
https://forum.processing.org/two/discussion/15473/readme-how-to-format-code-and-text#latest
For now, i am just trying to get the shield to display around the circle. The code right there is exactly right jeremy and i can't figure out how to display it correctly
@Darthbray --
You need to share your code for specific advice and describe what it is doing, and what you want it to be doing instead -- I don't know what "getting it to work" or "how to display it correctly" means -- it could mean anything!
Here is my best based on what you have described thus far:
this puts a triangular shield between the player and mouse
The shield protects the player against an attack from the mouse
Did you mean this?
You have given too little information to possibly answer your question. We just end up guessing and double guessing what you want.