Detecting Projectile Movement

Could anyone make a prototype please? I want this to have a research tag. I have been trying.

1 Like

Expanding on my idea:

  • Set a sentry or player to 1 hp.

  • Gather where the player fired the gadget.

  • When the player or sentry gets knocked out, gather that info.

  • From here, you can use the distance formula to find lengths.

  • Use the Pythagorean theorem to find the third length.

  • Use sin^-1 to calculate the angle.

I’m second guessing myself. Is it sin? Wait no it’s tan. I think…

Well, I think I know my next project lol

1 Like

If this is still based off of surrounding the player, that won’t work. If the player moves you’d have to constantly update the sentry to be near the player, which is time consuming anyways.

ha

2 Likes

It’s entirely based off of where the players are. Not the surroundings.

Isn’t there a lifecycle setting for player fires gadget and player knocked out? It uses those two to get both coordinates. It’s the only possible way to get a semi-accurate result.

It’s not an exact science. Besides, I’ll set the player movement to 0 anyway.

3 Likes

If we used pseudo hitboxes like @cheesebox has been trying to figure out, this might make it a lot easier. The hard thing is that it will be incredibly hard to make a working method of this. We would need something like the player coords device but for other things. I don’t know I don’t think this is possible YET.

What if when the prop broken tp player to the prop then check with coord and tp them back

1 Like

depends on how you look at it :3 one way to look at it would be to create the illusion of the player theirself moving by making the background or surroundings move instead
(I think that’s how lxmas or txme made a whole pixel game back then when the coordinate device never existed this was in early days too)

1 Like

Yeah it’s hard because we need to find a way to get the projectiles movement and then find out if it will hit the player.

Wasn’t there a game on discovery that was sort of like a pixel game? Could it have used randomly generating text pixels to make the landscape?

1 Like

wrong topic lol I think

1 Like

Yeah wrong topic

Gimjumper by @Apoll02

4 Likes

Here is a prototype of mine. The GIF is showing it working while the screenshot is the code.

Untitled video - Made with Clipchamp (4)

4 Likes

Alright! I don’t really…understand the code just because I didn’t make it but I guess this makes this a research topic.

oooooooo
comparing the knocked out peep’s coordinates to the other players coordinates(using keybind) to find an angl- I mean radian :0
but question is how r ya gonna put that radian to use?

2 Likes

Ooooooooooooo. Ok. Thanks!

THis is getting nowhere

Leaving now. Goodbye everyone.

I’m going to close this then, also just for the future don’t self mark the solution since that’s sorta solutio grinding.