# Shooter game example "hard-coded"

**URL:** <https://forums.unrealengine.com/t/shooter-game-example-hard-coded/247861>\
**Category:** Community & Industry Discussion\
**Tags:** General, unreal-engine\
**Created:** [August 29, 2021, 3:07am UTC](https://forums.unrealengine.com/t/shooter-game-example-hard-coded/247861 "2021-08-29T03:07:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_1f36ec71](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1f36ec71](https://forums.unrealengine.com/u/anonymous_user_1f36ec71)\
**Post date:** [August 29, 2021, 3:07am UTC](https://forums.unrealengine.com/t/shooter-game-example-hard-coded/247861/1 "2021-08-29T03:07:14Z")

</div>

Hi everyone, beginner UE user here. I’ve started modifying the Shooter example, and I’ve quickly modified it into a top-down, click-to-move shooter. I really like it generally, but my question is, is it a best practice in UE to build EVERYTHING in C++, even the crosshair? For example, wouldn’t it be better to handle the UI in blueprints?

Also, they initialize a lot of values in code instead of in UE on the visual interface. Coming from Unity, I see this as it might be problematic because of long iteration times and the general inability of designers to tweak the values.

Can you please enlighten me what is the reason that they did it this way in the example, what’s the advantage of this approach? Am I getting it all wrong (which very well may be the case, since I literally used UE for like 16 hours so far)?

Thanks!

---

<div class="post-metadata">

**Author:** ![TokyoAiri](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tokyoairi/32/88708_2.png) [@TokyoAiri](https://forums.unrealengine.com/u/TokyoAiri)\
**Post date:** [August 31, 2021, 8:14am UTC](https://forums.unrealengine.com/t/shooter-game-example-hard-coded/247861/2 "2021-08-31T08:14:06Z")

</div>

Hello @anonymous_user_1f36ec71 🙂

Before you read my reply, I would like to make clear, that it represents my personal opinion. It is totally fine, if you don’t agree ! 🙂

> [@anonymous\_user\_1f36ec71](#):
>
> is it a best practice in UE to build EVERYTHING in C++

A big no; Some things are wasted time, to implement in C++.  
Both C++ & Blueprints can work in wonderful symbiosis.

But for that, you’ll be in need for a feeling, what is better done in C++ rather than Blueprints or vice versa.

I suggest this Video by [Alex Forsythe](https://www.youtube.com/channel/UCJf_2Ea75Wub1FHe6YjQ7Qw)  
[Blueprints vs. C++: How They Fit Together and Why You Should Use Both](https://www.youtube.com/watch?v=VMZftEVDuCE)

The main focus is on actions, meant to be run in a tick, algebra operations or custom implementations (E.g Steam / Discord API)

I’m curious, how were you able to get started in coding?  
I’m facing frustrating problems with my IDE (Visual Studio)  
Syntax Highlighting & Code Completion not working.

Maybe you even wanna consider, my post on how I feel about it:  
[Horrible C++ IDE Integration & Newcomer Support](https://forums.unrealengine.com/t/horrible-c-ide-integration-newcomer-support/248159)

Best regards

---

<div class="post-metadata">

**Author:** ![DomusLudus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/domusludus/32/1215140_2.png) [@DomusLudus](https://forums.unrealengine.com/u/DomusLudus)\
**Post date:** [August 31, 2021, 10:11am UTC](https://forums.unrealengine.com/t/shooter-game-example-hard-coded/247861/3 "2021-08-31T10:11:01Z")

</div>

I think that Shooter game it is an example to learn C++ and suboonline system on different platforms, rather than a best practices for integrating blueprints and C ++  
Maybe you check this better:

> **[Action RPG Game](https://docs.unrealengine.com/4.26/en-US/Resources/SampleGames/ARPG/)**
>
> A sample game that shows how to use the Ability System plugin.

Btw: Currently I have the intention of converting part of my game to C++ and my main method is to have all the boring part in C++.  
And expose myself to functionality in blueprints to be able to make variants as if I were making a mod.
