did anyone make something that does that or at least have the details of it? (deploy time, gravity, position…)
Okay I seem to have got it working, heres the code:
SBRNX
Here’s the purpose of the variables:
A = Altitude of player
B = Position of bubble
C = Position when placing bubble
D = How far bubble needs to fall (If placed in air) , (Y coordinate when placing bubble - Altitude = How far it needs to fall)
F = Bubble gravity (The gravity will increase exponentially over time, it’s not perfect, but after testing it for a while I got pretty close)
Feel free to remove the script for the bubble effect, I just used it for testing.
Also radius of Winston bubble is about 5.1 incase you need to check if players are within radius of the bubble location.
If you have any questions about how it works or if somethings not working correctly let me know.
Wow thx! How did u do it? Like all the information is from testing and recording?
Yeah no problem! It wasn’t too complicated, basically whenever Winston uses his bubble (Is using ability 2), I set a variable to his location. If he’s on the ground, then that will be where the bubble is, it won’t need to be adjusted at all. It gets more complicated if he’s in the air, luckily his bubble doesn’t move horizontally at all so I just have to calculate the distance from the starting point to the ground. For the gravity I tried putting the game in slow motion and timing how long it took for the bubble to hit the ground from the air, but I would have to calculate a lot of stuff to figure out the actually physics of it. Instead of doing that I just kinda started at a certain fall speed and adjusted it until it was close to his bubble. When the bubble is falling, there’s a loop that increases the fall speed and adjusts the location of the bubble. Basically I just did some trial and error until I got it working! Hopefully that all made sense/helped at all!
If I want to make something happen when a player is in the radius of the circle I need a variable for the bubble created. I can create a distance between and use event player but I have no variable to use for the bubble so when they go near it something happens. How do I make a variable for the centre of the bubble or the whole bubble itself