# Ongoing C++ Gameplay Example Series: Making a Survival Game

**URL:** <https://forums.unrealengine.com/t/ongoing-c-gameplay-example-series-making-a-survival-game/24878>\
**Category:** Announcements\
**Tags:** unreal-engine\
**Created:** [March 20, 2015, 3:38pm UTC](https://forums.unrealengine.com/t/ongoing-c-gameplay-example-series-making-a-survival-game/24878 "2015-03-20T15:38:03Z")\
**Posts on this page:** 20\
**Page:** 5

<div class="post-metadata">

**Author:** ![Devero](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Devero](https://forums.unrealengine.com/u/Devero)\
**Post date:** [March 29, 2015, 9:47pm UTC](https://forums.unrealengine.com/t/ongoing-c-gameplay-example-series-making-a-survival-game/24878/83 "2015-03-29T21:47:32Z")

</div>

Looking great ! and your so fast =)

---

<div class="post-metadata">

**Author:** ![ChrisTm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ChrisTm](https://forums.unrealengine.com/u/ChrisTm)\
**Post date:** [March 29, 2015, 9:59pm UTC](https://forums.unrealengine.com/t/ongoing-c-gameplay-example-series-making-a-survival-game/24878/84 "2015-03-29T21:59:02Z")

</div>

Hi there ,

Documentation will be there today or in a couple of days , maybe next week or this is somewhere in the wiki , forum , Youtube?  
thank

---

<div class="post-metadata">

**Author:** ![Tom\_Looman](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tom_looman/32/1215549_2.png) [@Tom\_Looman](https://forums.unrealengine.com/u/Tom_Looman)\
**Post date:** [March 29, 2015, 11:17pm UTC](https://forums.unrealengine.com/t/ongoing-c-gameplay-example-series-making-a-survival-game/24878/85 "2015-03-29T23:17:37Z")

</div>

> [@;259786](#):
>
> Hi there ,
> 
> Documentation will be there today or in a couple of days , maybe next week or this is somewhere in the wiki , forum , Youtube?  
> thank

The docs will go up at the end of each section. So that is coming Friday for Section 1. They will be part of the regular documentation pages.

---

<div class="post-metadata">

**Author:** ![ChrisTm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ChrisTm](https://forums.unrealengine.com/u/ChrisTm)\
**Post date:** [March 30, 2015, 12:48am UTC](https://forums.unrealengine.com/t/ongoing-c-gameplay-example-series-making-a-survival-game/24878/86 "2015-03-30T00:48:46Z")

</div>

> [@](#):
>
> The docs will go up at the end of each section. So that is coming Friday for Section 1. They will be part of the regular documentation pages.

Ok , good , thank you .

---

<div class="post-metadata">

**Author:** ![Ivey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivey](https://forums.unrealengine.com/u/Ivey)\
**Post date:** [March 30, 2015, 7:44pm UTC](https://forums.unrealengine.com/t/ongoing-c-gameplay-example-series-making-a-survival-game/24878/87 "2015-03-30T19:44:53Z")

</div>

Section 1 has just been announced! Details \*\*\*\*]([Announcing Section #1 for Survival Game - Third-person Player Setup - Announcements - Epic Developer Community Forums](https://forums.unrealengine.com/showthread.php?64833-Announcing-Section-1-for-Survival-Game))

---

<div class="post-metadata">

**Author:** ![InfectedFPS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@InfectedFPS](https://forums.unrealengine.com/u/InfectedFPS)\
**Post date:** [March 31, 2015, 5:34pm UTC](https://forums.unrealengine.com/t/ongoing-c-gameplay-example-series-making-a-survival-game/24878/88 "2015-03-31T17:34:18Z")

</div>

Just starred this on GitHub. Already picked up a few things from looking over your code. Now I’m itching to go home and update part of my Simple FPS project I started last week lol

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_539bb9fd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_539bb9fd](https://forums.unrealengine.com/u/anonymous_user_539bb9fd)\
**Post date:** [April 1, 2015, 1:39am UTC](https://forums.unrealengine.com/t/ongoing-c-gameplay-example-series-making-a-survival-game/24878/89 "2015-04-01T01:39:15Z")

</div>

🆒

---

<div class="post-metadata">

**Author:** ![Tom\_Looman](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tom_looman/32/1215549_2.png) [@Tom\_Looman](https://forums.unrealengine.com/u/Tom_Looman)\
**Post date:** [April 3, 2015, 8:30pm UTC](https://forums.unrealengine.com/t/ongoing-c-gameplay-example-series-making-a-survival-game/24878/90 "2015-04-03T20:30:39Z")

</div>

I’ve put up a **[project intro page](http://www..com/survival-sample-game-for-ue4/)** on my site for the time being. **[Section 1](http://www..com/survival-sample-game-section-1/)** is now available too! So download the source and start digging!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8b8062ff](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8b8062ff](https://forums.unrealengine.com/u/anonymous_user_8b8062ff)\
**Post date:** [April 3, 2015, 9:36pm UTC](https://forums.unrealengine.com/t/ongoing-c-gameplay-example-series-making-a-survival-game/24878/91 "2015-04-03T21:36:09Z")

</div>

This looks amazing. The movement is smooth and solid. Loving the progress/update videos. 🙂

---

<div class="post-metadata">

**Author:** ![sHTiF](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sHTiF](https://forums.unrealengine.com/u/sHTiF)\
**Post date:** [April 4, 2015, 11:06pm UTC](https://forums.unrealengine.com/t/ongoing-c-gameplay-example-series-making-a-survival-game/24878/92 "2015-04-04T23:06:34Z")

</div>

not really sure what I am doing wrong as I am just starting with C++ in UE4 but if I load your project it always crashes when trying to open it in Visual Studio:

ERROR : Project “.\Workspace\Unreal\SurvivalGame\Intermediate\ProjectFiles\SurvivalGame.vcxproj” could not be found.

---

<div class="post-metadata">

**Author:** ![Tom\_Looman](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tom_looman/32/1215549_2.png) [@Tom\_Looman](https://forums.unrealengine.com/u/Tom_Looman)\
**Post date:** [April 5, 2015, 1:34am UTC](https://forums.unrealengine.com/t/ongoing-c-gameplay-example-series-making-a-survival-game/24878/93 "2015-04-05T01:34:47Z")

</div>

> [@sHTiF;264696](#):
>
> not really sure what I am doing wrong as I am just starting with C++ in UE4 but if I load your project it always crashes when trying to open it in Visual Studio:
> 
> ERROR : Project “.\Workspace\Unreal\SurvivalGame\Intermediate\ProjectFiles\SurvivalGame.vcxproj” could not be found.

That’s my bad, the .sln should have been removed from the repo by now - somehow it’s still there. You need to right-click the .uproject file and click Generate Project files to generate all local files (eg. the missing .vcxproj file)

* * *

**Edit:** Was playing around a bit with the new Kite demo assets to see if I could use it for this project (it’s a _bit_ hefty on size with 6.3GB)

Anyway, this happened:

[http://www](http://www)…com/wp-content/uploads/2015/04/strangeforestanimals01.gif

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6334e343](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6334e343](https://forums.unrealengine.com/u/anonymous_user_6334e343)\
**Post date:** [April 6, 2015, 8:18pm UTC](https://forums.unrealengine.com/t/ongoing-c-gameplay-example-series-making-a-survival-game/24878/94 "2015-04-06T20:18:35Z")

</div>

Just checked out the documentation for this on your [Web Page](http://www..com/survival-sample-game-section-1/#Concepts_that_are_covered_this_section).  
Always some great stuff over there! ☆

Have a cold one! 🙂

---

<div class="post-metadata">

**Author:** ![DesertEagle\_PWN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DesertEagle\_PWN](https://forums.unrealengine.com/u/DesertEagle_PWN)\
**Post date:** [April 7, 2015, 12:50am UTC](https://forums.unrealengine.com/t/ongoing-c-gameplay-example-series-making-a-survival-game/24878/95 "2015-04-07T00:50:31Z")

</div>

Hey Everyone, chiming in. I’m gonna pick this tutorial up in my down time. Got other projects that need my attention but I should be able to follow along as modules get released.

Thanks a bunch , good to have people like you who will put effort into something like this.

---

<div class="post-metadata">

**Author:** ![fuken33](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fuken33](https://forums.unrealengine.com/u/fuken33)\
**Post date:** [April 10, 2015, 4:37pm UTC](https://forums.unrealengine.com/t/ongoing-c-gameplay-example-series-making-a-survival-game/24878/96 "2015-04-10T16:37:48Z")

</div>

Thank you so much, . This is what i have been looking for a long time. Wish you luck

---

<div class="post-metadata">

**Author:** ![SCASL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SCASL](https://forums.unrealengine.com/u/SCASL)\
**Post date:** [April 15, 2015, 4:31pm UTC](https://forums.unrealengine.com/t/ongoing-c-gameplay-example-series-making-a-survival-game/24878/97 "2015-04-15T16:31:55Z")

</div>

Great! Can’t wait to see it! 😉

---

<div class="post-metadata">

**Author:** ![Tom\_Looman](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tom_looman/32/1215549_2.png) [@Tom\_Looman](https://forums.unrealengine.com/u/Tom_Looman)\
**Post date:** [April 17, 2015, 1:56am UTC](https://forums.unrealengine.com/t/ongoing-c-gameplay-example-series-making-a-survival-game/24878/98 "2015-04-17T01:56:54Z")

</div>

Video update for Section 2:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/5/5/155c3f411fe5dce9ae0b5b6f1eaefc0ded099967.jpeg "UE4 C++ Survival Game - Section 2 Multiplayer Demo") ](https://www.youtube.com/watch?v=UHPAmfHlYOA)

---

<div class="post-metadata">

**Author:** ![ChrisTm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ChrisTm](https://forums.unrealengine.com/u/ChrisTm)\
**Post date:** [April 17, 2015, 5:48pm UTC](https://forums.unrealengine.com/t/ongoing-c-gameplay-example-series-making-a-survival-game/24878/99 "2015-04-17T17:48:41Z")

</div>

Hello there,  
Everything is cool , i wait section 3 this week .  
It’s will be really cool , a camera shakes when character runs fast…  
Great job & thank you

---

<div class="post-metadata">

**Author:** ![shadowmint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shadowmint](https://forums.unrealengine.com/u/shadowmint)\
**Post date:** [April 18, 2015, 6:29am UTC](https://forums.unrealengine.com/t/ongoing-c-gameplay-example-series-making-a-survival-game/24878/100 "2015-04-18T06:29:09Z")

</div>

I’m quite enjoying this series, but it seems to be focused on doing quite trivial things that you could easily implement without C++.

At the moment it just looks like ‘I back ported these blueprints to C++, it’s kind of annoying I know, but hey look, it is actually possible! Hi-5!’.

As it is, the project heavily uses blueprints already.

How about some stuff that you can’t easily do in blueprint, that make it actually meaningful to use C++?

- Using plugins to create modular units you can drop into any project

- Unit testing your C++ using the automation tool

- Using 3rd party C++ libraries and creating UObject bindings for them to use ‘in game’ (eg. [GitHub - tunnuz/cpplex: Multi-platform, self-contained and object-oriented implementation of the S](https://github.com/tunnuz/cpplex) to generate random levels).

- Procedurally generating meshes

- Using threads, tasks and events, not just timers.

- Using FHttpModule to commuicate with a json rest service for authentication / char

I mean… I’m enjoying reading this, but so far I’m looking at it going, ‘why wouldn’t you just use blueprints for this?’

---

<div class="post-metadata">

**Author:** ![Tom\_Looman](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tom_looman/32/1215549_2.png) [@Tom\_Looman](https://forums.unrealengine.com/u/Tom_Looman)\
**Post date:** [April 18, 2015, 12:44pm UTC](https://forums.unrealengine.com/t/ongoing-c-gameplay-example-series-making-a-survival-game/24878/101 "2015-04-18T12:44:21Z")

</div>

> [@shadowmint;274242](#):
>
> I’m quite enjoying this series, but it seems to be focused on doing quite trivial things that you could easily implement without C++.
> 
> At the moment it just looks like ‘I back ported these blueprints to C++, it’s kind of annoying I know, but hey look, it is actually possible! Hi-5!’.
> 
> As it is, the project heavily uses blueprints already.
> 
> How about some stuff that you can’t easily do in blueprint, that make it actually meaningful to use C++?
> 
> I mean… I’m enjoying reading this, but so far I’m looking at it going, ‘why wouldn’t you just use blueprints for this?’

Thanks for your input shadowmint!

I wouldn’t say it’s heavily using Blueprint at this moment. There is little to no logic nodes being used in Blueprint. It’s all for set up and assignment, which is a very natural way to deal with content. Doing it forcefully in C++ would only introduce bad practices.

All your topics are interesting to cover. The goal of this project is not to show what is not possible in Blueprint, but to demonstrate and explain gameplay concepts in C++. If you wish to use Blueprint, by all means go ahead - I’m just showcasing the C++ gameplay end of the engine.

I’ll pass along your list of topics to learning resources.

-

---

<div class="post-metadata">

**Author:** ![shadowmint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shadowmint](https://forums.unrealengine.com/u/shadowmint)\
**Post date:** [April 19, 2015, 2:21am UTC](https://forums.unrealengine.com/t/ongoing-c-gameplay-example-series-making-a-survival-game/24878/102 "2015-04-19T02:21:00Z")

</div>

> [@;274377](#):
>
> It’s all for set up and assignment, which is a very natural way to deal with content. Doing it forcefully in C++ would only introduce bad practices.

As you’ve just pointed out, the engine is designed around using blueprints; not necessarily blueprint _scripts_, but its inevitable that you will use blueprints at some level.

Don’t get me wrong; I write as little blueprint scripting as I possibly can, but not _arbitrarily_: I do it because its testable, it’s easier to collaborate with other coders, you can use external libraries, you can use existing code review tools, its faster; …but sometimes, either 1) the engine is too weird (AddDynamic say), or 2) you need to tweek the logic of something constantly and you end up using blue prints, because they’re a better choice for those specific cases.

I personally just think that the tutorial series would be slightly more meaningful if it covered ‘why am I using C++ for this part?’; maybe even add some blueprint scripts which use exposed C++ functions and then cover ‘why have I chosen to use blueprint for this part instead?’.

That feels like it would be more practical to the majority of people using a combination of C++ and blueprint scripts in their games, rather than just the arbitrary decision to only use C++.

That said, I mean, I get it. This is just a C++ showcase, and like I said, I’m enjoying the read~

Just passing on my 2 cents about what I, personally, would like to see. 🙂

[Previous page](https://forums.unrealengine.com/t/ongoing-c-gameplay-example-series-making-a-survival-game/24878.md?page=4)

[Next page](https://forums.unrealengine.com/t/ongoing-c-gameplay-example-series-making-a-survival-game/24878.md?page=6)
