Battle Royale Game - Any Ideas?
Sh4dowGaming1234
19 May 2019, 22:05Hi
I'm building a battle royale game called Decimation.
I have the parachute thing, a random loot crate, different guns (and some melee weapons), different areas, and more.
I just need to know how exactly to make a system where building in the same room as another building would make a structure
E.g. Builds wall in same room as floor, makes house.
Hope this is easy enough to understand.
Thanks.
mrangel
19 May 2019, 22:37I assume you'd add something to the code for building walls, so that if there's a floor there you have it construct a house.
Or am I misunderstanding?
Sh4dowGaming1234
20 May 2019, 05:25Yeah, exactly
Sh4dowGaming1234
20 May 2019, 19:14Yeah, exactly
mrangel
20 May 2019, 20:30Is there a part of that you're having a problem with?

Io
26 May 2019, 14:55In psuedocode, here's my idea:
Whenever you build a wall in a room:
Room.WallCount=0
For each clone of WallObject in Room:(
Room.WallCount=Room.WallCount+1
)
if Room.WallCount=4:(
Destroy every clone of WallObject in Room
Clone HouseObject and move to Room
Room.WallCount=0)
)