(Hopefully the title has grabbed the attention of someone who has made one. I know you’re out there, but I can’t find the post you’ve made about your work.)
Over the last week or so I’ve been working on an Entity module for my game. Its a really fast & lightweight method I can use to let the player and the world interact with certain objects. So far it only works with Shooting things, but I’m also interested in expanding its use to interactions.
I’ve been throwing ideas around for a while, and in order to maintain the lightweight & fast nature Entities, I want to be able to create links between certain objects and certain actions. In the past I’ve used Value objects to achieve something like this, but it was extremely inefficient and way too frustrating to use. I’ll likely create an OOP objects for each type of link, repeatable, loops, single use, switch ect.
But has anyone got much experience making something like this? All my uses for this will be pretty straight forward and shouldn’t require too complex coding.
Having something like this would allow me to say;
Heres a door object, heres a switch. The player needs a keycard to open this door from the switch and the door will only be open for 10 seconds before the player needs to press the switch again.
And then using the exact same code be able to say;
Here is a moving platform, here is a switch, when the player hits the switch the platform will move between one of two locations.
If anyone has any knowledge or suggestions on the subject I’d be really keen to know them!
By doing something like this, I’ll be able to create links between interactable objects. An issue I’m looking at atm is how to properly reference LogicSteps. I’m using Attachments to visualise them, rods to connect them, and Billboards to make sure I know what kind of step they are.
Is there a better way to connect them? Are there more steps I’ll need to consider?
Long ago, roblox had a wire system that made use of the CustomEvent/CustomEventReceiver/FloorWire instances. The build tools actually included a Wiring tool and the Stamper had even a whole category Wiring for models that had this input/output system.
Your current thing looks decent, I’m just a bit worried what it’ll will look like if there are other things (in front of it) making it less easy to see. You could try out a moving Beam, which would also make it clearer in which direction the input “flows”
I was wondering what happened to floor wires.
Beams are a good idea, I’ll switch to them.
I’m essentially making my own version of that but for studio use. Being in-game won’t show any links unless you mess with some commands.
EDIT:
Beams do look a lot nicer; https://i.gyazo.com/a84705a131a55ba00398c71084b16992.mp4
Visual programming languages aren’t the easiest to pull off on Roblox - don’t think you can at all. The closest you can come to a VPL is when the functions are named, with instructions, to the point where your code looks a little English.
The challenge;
Have one door that is going to “open” (for the purposes of this trial it’ll just un-anchor)
Have two buttons, one gate and one delay.
Gates are currently set on the AND setting, they require all connected inputs to be true to proceed.
Delays wait for 5 seconds before sending its output, setting the next input to be true.
Inputs are the buttons. They will glow when pressed.