making better engine...for Cube

This forum is currently in read-only mode.
From the Asset Store
75 vehicle sound effects, from real looping car engines to jet aircraft and sci-fi engines.
  • I got one problem with my engine for Cube and have no idea how could i approach that.

    For now it's mainly based on 4 global variables - RoomX, RoomY, RoomZ, RoomXYZ and it's quite simple.

    RoomXYZ = RoomX & RoomY & RoomZ

    Going through the doors adding or subtrackting values for that variables.

    All the action (colours, traps, cutscenes...) is based on RoomXYZ variable.

    example:

    if RoomX = 3, RoomY = 2, RoomZ = 4 then RoomXYZ = 324

    and if RoomXYZ = 324 set room colour to blue and/or do something else etc...

    And here's my problem. All gameplay element's is loading and seting up during runtime - so ie. if i want to set room 444 to white and have something to do for player in there i actually have to go "in game" to that room, becouse i need to set global variables to value 4 & 4 & 4 which is set by moving between rooms.

    For what i have now it's fine. But what i would like to do later for gameplay need's some better and easier control for seting up rooms.

    I thought that if i could set up all of the rooms (with all of their content) before game actually runs would be probably much better and let me focus only on action for specific room i want.

    Here's the thing, i have absolutely no idea how could i do that. During some tests i managed to set few rooms to load before game starts but couldn't set colour and movement between those rooms.

    I will realy appreciate if someon could help me whit that.

    Best regards

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)