Battle Royale Game - Any Ideas?

Sh4dowGaming1234
19 May 2019, 22:05

Hi
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:37

I 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:25

Yeah, exactly


Sh4dowGaming1234
20 May 2019, 19:14

Yeah, exactly


mrangel
20 May 2019, 20:30

Is there a part of that you're having a problem with?


Io
26 May 2019, 14:55

In 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)
)