29th NOvember


This is the first prototype level in 'Dupliscape'. The player currently controls a small white square the can move left, right and can jump. The level currently contains a "Switch Door". This is a door that can be open by standing on a switch, as shown the second screenshot. This build also contains a platform that moves left and right.

This "ButtonController" script is used to detect whether the player or a clone is currently colliding with the button. If there currently is a collision, the "ActivateButton" function is called, if the collision finished (a player or clone stops colliding with the button) the "DeactivateButton" function is called.
This is the script within the "SwitchDoorController". Depending on what the button script tell it to do, it will either close or open it.



This is the script and the public variable for the moving platform. It accesses the platforms rigidbody and sets the velocity to either left or right depending on it's current position relative this it's start position.