Hello, I’m new to UE4 and have recently started my project on a very basic chemistry simulation “game.” Basically, my plan is to create an “inventory” box that contains a list of molecules. Which, if you were to drag and drop say 2 of O2 molecules and one methane molecule, how could I make them come closer to make them react with each other?
I would go with a system like the horadric_cube in diablo.
create an item system.
create a list of possible combinations.
create a widget where you can drag and drop items in.
create a combine function which checks if the the items you dragged in are in the combination list.
Just curious, Is there any tutorial or video I can use to create a list of possible combinations?
not that i’m aware of.
How could I do it then?
a few ways come to mind. the most fun is finding suff our yourself
it depends on how you setup your item system.
how about making a custom struct and add the possible counterparts to the combination to it with the result.
and when you try to combine items, you check the struct with a for loop if there is a possible combination.