Friday, December 11, 2015

ET 49 - Assignment 16 - Code Name Donkey Kong - Basic Key Events

Due to design choices I made no effort to be apart of that probably didn't foresee having to shoehorn in random tutorials, I couldn't quite implement the key events the way Nick Tuso outlined.  However, level three already had items that fit the bill; It was just that it didn't make sense to have to "Pick up" said items.  Still, the basic concept is the same: Set off multiple triggers separately for one final event.  In this case, winning the game.

Skipping the parts that didn't work and had to be removed, first I created an integer variable in the third person game mode called "Points Captured" to track said capture points.


Then in the capture points' blueprint, it accesses the third person game mode to add one to the Points Captured variable upon its own destruction.  It also adds fifty points to your score and prints out how many points you've captured to the screen.


Finally, the level blueprint checks the number of Points Captured against the number of capture points.  Since there are seven control points, it checks to see if you've captured more than six of them.  Once done, it ends the level.


Check it out in action below.  Normally there are enemies on this stage, but I disabled them before recording this video.

No comments:

Post a Comment