This is challenging to explain - but I made a block building system, and I can’t figure out how to code it so when you click in front of a block without clicking on one (like bridging with blocks), it places a block attached to the block. Similar to Minecraft: Bedrock. At the moment, it only builds off of something if you click on a part/block.
Making a bedrock-style block placement off the block in front of you in custom block building system
I know about that thing, what I would do is add a part that is adjacent to every block, make it invisible and if you’re looking at it then place the block there
(Minecraft memories, I remember when I used this trick in Bedwars…)
Pretty clever idea, so every time you place a block it places a few more to the sides of it which you can click and build. I’ll give it a shot see if there’s any issues.
Yea exactly, only problem is you’ll probably need to either anchor them or weld them, and the block would probably become a model, might have a few flaws, but it’s the only thing I can think of other than some very very very intense math of calculating where the Player is looking
You would need to get the Way the Player is facing and have a block be placed in front of the Part that the Player is on, or close to the edge of it.
Yeah, I already got the base system down, so I shouldn’t be too hard to punch in - hopefully.
And yeah, I was thinking I would end up having to do some wild math or weird raycasting, but this might actually save me from a headache.
Hmmm. I could do something like that, where if you’re close to the block it adds the adjacent blocks which you can click and add.
Good luck!
Hopefully you can solve the problem
May I ask why you’re trying to do this? Are you trying to create a Minecraft-like Game?
I’m remaking a game I made a while ago called Sumo Block from the ground up with new twists and concepts.
I might putting players in first person now, which means I need a good way to have building not require precise camera tricks just to bridge.
Everything will be recoded and revamped from scratch for National Skills USA.
Sounds good!
I’ll be waiting for news on your Game and what you need to do now for the bridging, good luck!
Your idea works great, thanks!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.