Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is there any way to make GUIs have physics?

Asked by
Crytkee 17
3 years ago

I need some help finding a script for a 2D Physics game. I'm trying to make an Angry Birds remake, and I need the GUIs to have physics. Is there any way to do this? I wasn't able to find help on the DevFourm or YouTube.

Thanks, Crytkee

2
Trust me, 2D is far harder when you want physics, you would have to make it yourself using a lot of math and I'd just rely on scripting the camera for a 2D effect. greatneil80 2647 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

Yes, its definitely possible. You just have go through all the leg work and math. The reason why there isn't a tutorial on this topic is because its just way too complicated and barely anyone bothers scripting anything like that. consider just fixing a camera so that you can only look from one perspective.

lets say you still want it to be 2d, then consider tweening the guis. When you shoot a bird, you need to tween it from A to B, B to C, and so on until u reach the final destination. it requires way too much thinking and math.

then you still need to consider the blocks hit by the bird. Any block touching the bird will need to move. then the blocks will need to fly around... its definitely doable by scripting but its just way too complicated. only consider doing this if you're willing to go through the pain of figuring out the math

Ad

Answer this question