How would I make a camera shop with Gui similar to bee swarms?
This will showcase different types of things in my game for the player to also buy.
How would I make a camera shop with Gui similar to bee swarms?
This will showcase different types of things in my game for the player to also buy.
This showcases my approach, it might not be the most simple approach
What I would do is make a shop module which has all the functions and the amount of items I have in the shop. When I go on the shop there would add a function in the module that create shop that would Instance all the UI in the player have the clicking scripts there. I would obviously pass the camera, player and objects which would be either locally instanced in a place with a background or already there in the server.
After I would use to camera to tween its position to the next object which could either be approached by moving the camera a specific amount to the direction or having parts assigned with the objects that will decide where the camera should move. That’s basically all I would do, I did not write any scripts since it is not allowed to ask someone to script for you in the forum.
You could create multiple parts in Workspace with a custom name. If necessary, put them in a separate folder to keep it organized. Then you can use a script to go around the different camera points. Here is an example of how to go to another camera angle.
game.Workspace.CurrentCamera.CameraSubject = game.Workspace.Cameras.Camera1 -- Setting the camera of the player to a part of the game.
You can then use a function to go through the rest of the cameras and adjust the GUI accordingly. Hope this helped you out.