Been trying to get something like this working for a while now, but it’s not quite there yet. What I’ve tried doing is creating an integer that adds or subtracts how many roads to place depending on when the mouse moves. As you can probably tell just from reading that, it doesn’t work too well. The best I know to do at the moment is add a very short delay between when the mouse moves and when the game adds/subtracts to the integer. I’ve also tried making it a float variable and having the float increase in smaller increments. Not surprisingly, it doesn’t change much when I do that. I’ve also tried having the player create splines within the game for the roads, but since I’m using sprites and not meshes, I haven’t had much luck there. Not to mention I don’t know enough about splines to work around that issue.
So the question is, anyone got an idea of how to go about making a road placement system for a City Sim game in UE4? I was aiming to achieve something like in Cities: Skylines, but I’m starting to recognize that that may be a bit difficult to do with sprites. There are no meshes anywhere within the game, it’s all 2D images. I’m sure someone here can guide me in the right direction.