Monday, 6 February 2012

Grabbing Objects

Matt Jonas attempted to write some code to enable object dragging within the game, however, an example of such code already exists and can be tweaked to the developer's satisfaction. This is a video showing the implementation of this code, which allows the player to interact with and drag in-game objects.

This could be used for moving a box out of the way of a door, ripping a painting off a wall to reveal a safe, or blowing sand away to reveal a hidden message. It could also be used as a fun game mechanic that rewards players who have the initiative to look around and interact with objects.


This scene also contains the respawn function, as previously integrated.

No comments:

Post a Comment