Thanks. Helful.
Basically, what I am trying to achieve is movement in array, but I do have some walls, that I don't want the player could teleport over, so I am trying to find out if between the player and the final destination is wall, so I can ban his teleportation.
Develop games in your browser. Powerful, performant & highly capable.
Hi,
I want to make pathfinding of electricity, so I need to navigate them through the cables. Any way to make reverse pathing of some sort?
Thanks. This was really helpful. It is now more clear to me with those 4 boolean variables.
Btw I did that with rotating the road by an angle before.
this is just an idea, but is there any way to do a electrical circuit? Biggest problem is even on the start, when you want to light up the light bulb. Because you need to compare if light bulb is connected by cords to the battery. Any way to compare that? Because it is really interesting theme for me. Thanks for every answer!
Yes, I can. Yes, thery are in a grid. I have 4 types of roads (straight, straight with one connected road, 4 directional intersection, curved road).
I will look at what you said. Seems pretty useful. Thanks.
I am making a city builder game of some sort and I have one big problem with roads. I personally do not place the roads on the map, because the player does that so I can't toggle them in the editor. I have only 4-directional roads, but I don't want to code every possibility of road placement, so I need some algorithm that will compare where the nearest roads are and toggle the road to connect to them. Any help from you guys is appreciated. Thanks!
I was trying to make split screen for my game, but even if I did the same that was in the tutorial of Paster addon, I wasn't able to reprocude it. Here is my game: tr.im/WkkAx
Can someone help me with this?
PS: Paster addon: https://tr.im/vFrwb