Posts

Showing posts from July, 2021

Unreal Engine AI C++ PART -2 Chase Target

Image
 In Last Part We see find a target (Player) . In This part our AIEnemy Follow our Player and If The Player in Range Follow the player and not In Range AIEnemy Move to Home Location or Root Location move Randomly. Start !! Add Some Sphere Component For Range of AIEnemy to Detect Player ; Open Up EnemyAIController class Files; #pragma once #include "CoreMinimal.h" #include "AIController.h" #include "BehaviorTree/BehaviorTreeTypes.h" #include "EnemyAIController.generated.h" /** * */ UCLASS() class MASTERCHARATER_API AEnemyAIController : public AAIController { GENERATED_BODY() public: AEnemyAIController(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get()); class UBehaviorTreeComponent* BehaviourTreeComp; UBlackboardComponent* BlackBoardComp; /*Hearing Radius */ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Targeting Hearing Radius") float HearingRadius = 300.0f; virtual void OnP...

Unreal Engine AI C++ PART -1 Detect Target

Image
 In Game Development Artificial Intelligence is Mostly used for Making Game Play is More Funny and nice connected with game player; NPC :  Non-Player Character (AI); UE4 is well Supported. We can do In this section with C++ with more great power; Now We Use Simple AI Game Play Program. Where We use AI : Like - Enemy, Supported Player Character's, making Some Auto Cars in Game etc. we use it every where we can do but we need look on your game performance. Make a AI when you needed; We Can Add a Smart AI? If We looking generally a Game have 20 to 50 levels or 5 hours to 50 hours a game take time to full game play; We add Smart AI what happens Player is dead again or failed in mission's and Game Player (Gamer) is not like this games because they want complete missions with easy and funny game play; Or Some Missions we add powerful AI but not SMART AI; SMART AI : like When Player fire the hide on cover or they know where is from player comes, they h...

Game Design PAPER DESIGN

 Every Level or Game Design begin with Idea. IDEA FORMED : Images, concepts, emotions and sensory input like taste and smell; All things are knotted together like ball of yarn. Idea goes into a Game that designers do!! They take ephemeral things and give them form. Good game designer turn good idea great solid, definable. workable game. Comping up With Ideas! If you read this that's mean you want to a great game with your ideas and make it visible to game players. And you have some or lot of Ideas in your mind. The Idea is based on your Game Engine if you are using Unreal Engine you probably be making a Big Game or great environment game. Looking for fresh Idea :: Talk With Your Friends : how they like games, which game is mostly interested, good idea with your game idea. The Internet : Gamer's post there ideas make games or reviews games to what they need in next update's or next coming game. Play the Game which game Engine or Tool-set you Using...

Basics Of Game Design

 Developing Games most challenging and rewarding experiences i can Think!!. Pure Imagination and making it come alive is absolutely addictive. Some People think Playing game is Fun but for few special People, creating and building the environments in which other people play. We are special people if you read this, Who create and build . First Step : Design Game in our Journey. First you failed to deliver. You need great creating skills but this is more about your patience. Badly design is your success. You know gamer's behavior that how to build for. Smart, Imaginative, tenacious and Driven is great Game Designs skills. FUN Simply People Enjoy your game. People play game because they want "FUN" is most important in your game world; Know your Audience Your Game : Your target audience and you need to know about this; Find Target Audience : Making Internet Message board and chat rooms dedicated to games similar to the type of game you want to d...

Unreal Engine 4 Save Game C++

 Save game and load Game How To: Using SaveGame Object. Set-up saving and load game object use SaveGame object; SaveGame Object Box with different compartments. You set-up each compartments to store a particular information by creating variables; Ex : You need store score so you need transfer information into SaveGame object from other classes. First you need to instance or copy of your SaveGame object. // How to i create this look down!! // SaveGameObject.cpp #include "SaveGameObject_Cover.h" USaveGameObject_Cover::USaveGameObject_Cover() { SaveSlotName = TEXT("TestSaveSlot"); UserIndex = 0; } // SaveGameObject.h public: USaveGameObject_Cover(); UPROPERTY(VisibleAnywhere, Category = "Basics") float ScoreSave; UPROPERTY(VisibleAnywhere, Category = "Basics") FString SaveSlotName; UPROPERTY(VisibleAnywhere, Category = "Basics") uint32 UserIndex; }; Now You can see we created SaveGameOb...

Unreal Engine Actors

Image
 Basic game-play elements, Actors and objects; Actor : Placed into a level. Actors are a generic class that support 3D transformations (Translation, Rotation, Scale). Actors can created (Spawned) and destroyed using C++ code or Blueprint ; AActor is the Base class of All Actors; Actors types like : StaticMeshActor, CameraActor etc; Actors not store Transform data; The data of Transform is the Root Component, if exists is used instead. Creating Actors New Instances of AActor classes = Called Spawning ; Done By Using Function Name = SpawnActor() ; // see more click on it; // Spawan Actor FTransform SpawanLocation; AES_SpawanEnemy* SpawanActor = GetWorld()->SpawnActor (AES_SpawanEnemy::StaticClass(), SpawanLocation); UClass* ActorClass = SpawanActor->GetClass(); Components : Actors containers that hold special types of objects called Components. Com...

Unreal Engine C++ Useful Property Specifiers Basics

Image
  How To be Edit Variables in Properties windows ; Some times we need to edit our properties from editor window (Properties Window of Actor or Pawn) without touch C++ code or class. UPROPERTY(EditAnywhere , Category = "Category name") float ForwadForce = 2000.0f; // we edit this property in editor Unreal Engine Gives you Power to change without code; Expose Variable's in Blueprint Declare a variable in C++ class and call it from Blueprint; Multicast Delegates only. Property should be exposed for calling in Blueprint code ; UPROPERTY(BlueprintCallable) float defalutHealth; // Blueprint Class the Value is Expose and we change it; Expose but Read Only and Read-Write Simply mean don't change the value but Blueprint class Expose it only; UPROPERTY(BlueprintReadOnly) int32 Point = 10; // the value is don't changing in Blueprint Class ...

Unreal Engine 4 C++ Let's Start

Unreal Engine is Great, Robust Programming, Node Programming (Blueprint), and High Quality Graphics Game Development Engine. Unreal Engine is Free for everyone this is the big Positive options with game developers. Unreal Engine uses Blueprint and C++ Programming language for Game-play Programming. Why C++ In Unreal engine C++ not hard but not simple or another this is using great rules of Programming like we macros for variables declarations or define Functions or UENUM etc. Unreal Engine uses it's own many features to make C++ easy for every one; C++ and Blueprint Unreal Engine uses C++ Programming and Blueprint Visual Scripting for non- programmers or designers(we made full game with Blueprints). Key Features: Blueprint create new game-play elements Using C++, programmers add the base game-play systems that designers or non-programmers use the create own custom game-play for a level or for the game. C++ : Programmers works in IDE Microsoft Visua...