Skip to main content

Posts

[Unreal Engine][C++] How to create a custom CharacterMovementComponent

[Unreal Engine][C++] How to create a custom CharacterMovementComponent A Custom Character Movement Component Used Unreal Engine Version: 4.22 Since the Unreal Engine Wiki is somewhat outdated in specific areas and I am not allowed to edit there, because they are working on a new one, I spare you the hassle to figure it out for yourself and present to you: the custom character movement component :D If you want a character that supports more movement types, you have to extend character movement component. Here is how to do it: First, create a new class inheriting from UCharacterMovementComponent : // MainCharacterMovementComponent.h UCLASS ( ) class MYGAME_API UMainCharacterMovementComponent : public UCharacterMovementComponent { GENERATED_BODY ( ) public : UMainCharacterMovementComponent ( const FObjectInitializer & ObjectInitializer ) ; protected : virtual void InitializeComponent ( ) override ; virtual void TickCompone...

[Unreal Engine][C++] How to create a step on button

[Unreal Engine][C++] How to create a step on button Step on Button Used Unreal Engine Version: 4.22 The “Step-On Button” is a very common video game element, especially in platformers. It is used to trigger some action, when the player steps on it and pushes it down with his weight. Creating one with Blueprint is not difficult. Here I show you how to create a universally usable and customizable step-on button with C++. Implementation We’ll base our button on the Simple Trigger Actor I described in an earlier post. If you have not already, please implement that one first. Now create a new class StepOnButton and inherit from ASimpleTriggerVolume . The button will consist of a separate root component (which allows you to relatively place the button’s contents), a shape component (the shape of the trigger), a button mesh and a button base mesh, as well as a sound effect, which is played, when the player steps upon it and triggers an action. The first compone...

[Unreal Engine][C++] How to create a simple trigger actor

[Unreal Engine][C++] How to create a simple trigger actor A Simple Trigger Volume in C++ Used Unreal Engine Version: 4.22 This is the first post of a small series of Unreal Engine C++ Tutorials. Keep in mind, that Unreal’s API changes rapidly and often. I still hope, this may be of some use to others. Coming from Unity, programming in C++ for Unreal is rather painful. I hope to give you some assistance and make life a little bit easier. Whay, would you say, should we make our own trigger actor? There is ATriggerVolume , right? Yes, there is, but inheriting from it is difficult and rather undocumented. I tried and failed. Yes, we have to give up some of ATriggerVolume 's functionality, but we learn a lot and at least we know exactly what it’s doing. First, we’ll create a new C++ class, inheriting from Actor , called SimpleTriggerVolume . Let’s add a protected property to hold a reference to our trigger component: /** Shape of the trigger volume componen...

Games for a video game console like steam mashine

Attention: There is an updated version of this article ! Want that gaming console feeling for your steam mashine? I've got a list for you. With these titles your living room Steam PC will feel more like a Nintendo gaming console. All games are gamepad compatible. Miss those days, when you sat down on a couch with your friends and played together? You don't like playing with keyboard and mouse? I myself have always been a big fan of the classical gaming console experience. Start the console and play - no fiddling with drivers, graphics settings or save game directories. Well, Steam is not perfect, but as good as it gets, when you try to have this on a PC. I was looking for years for good multiplayer games or platformers, which give me that Nintendo feeling. Here is what I found. If you are a child of the 90's, chances are you will like them as much as I do. Have fun :) This blog has an affiliate program with Humble Bundle. The games' links direct to Humb...

Must have apps to make working with Windows 10 reasonable

Well, working most of the time with under Linux / GNOME I have grown accustom to some features which are still missing in Windows - and which I can't work without anymore. For example: why on earth does the Windows File Explorer (which is almost as old as I am) not support tabbed working? I know no other file manager which lacks this feature. And the Windows file explorer ist the most used in the world! Next thing, the default Editor ist still Garbage and still looks and works like 1995. Okay, here are the apps which I use to almost enjoy working in Windows 10: 1. Tabbed Filed Explorer Clover adds tabbed browsing to the File Explorer. You could also use Explorer++ which ist Open Source, but hasn't been updated for a while. Clover has one big backdraw: it's installer is available in chinese only - but simply pressing the big white button gets the process done. Download Clover 2. Package Management Why should anyone search the web to get a simple music player in...

Template DIY Nintendo 64 and GameBoy / GBA Inlays Inlets

Over the years, since I've been a child, my N64 cartrige inlays have gone astray. I lost a couple of them, but still got 2. So I measured the original one to create a template for printing and folding new ones. The following template is DIN A4, standard paper layout in Germany. Print the template on thick paper or thin cardboard. Set printer settings to no scaling / 100%. Cut along black lines, fold along dashed lines. Print on the backside, so your front stays clean. I know the middle part is bigger than a catrige, but so it is in an original inlay. Have fun :) Download the template as PDF: Template N64 Inlay SVG Source File: SVG Template  GameBoy Inlay Template: PDF SVG GameBoy Pokemon Pinball Inlay Template: PDF SVG GameBoy Advance Inlay Template: PDF SVG                 

Generic Service Locator in Java for Game Development

ServiceLocator is a very useful decoupling pattern to avoid too many Singletons. It's structure is always the same, so I thought it should be possible to create a generic one, to decrease code duplication. Well, here is what I've come up with,  guess someone with more knowledge about generics could create something better, but it is better than nothing. PS: I thought it must be possible to have a static method generating NulServices / Stub Services in the Classes implementing IService, but I couldn't find out how to demand a static method createNullService in an interface. Tell me if you have an idea. Here ist the abstract ServiceLocator import java.util.HashMap; import java.util.Map; /** * IServiceLocator * * @author Georg Eckert 2017 */ public abstract class ServiceLocator { private final Map<Class<? extends IService>, IService> services, nullServices; public ServiceLocator() { services = new HashMap<>(); null...

[Tutorial] Play Pokemon GO and Mario RUN on Lineage OS or CyanogenMod

Hi there, I finally managed to run Mario Run and some other Nintendo Games ( Mario RUN , Magikarp Jump , Pokemon Shuffle ; including Pokemon GO , which is made by Niantic and not Nintendo) on my Samsung Galaxy Note II with Lineage OS 14.1 / Android 7.1. Look no further, here is what you have to do :) Unfortunately you might have to reinstall your custom ROM, so backup all your data or enable Google App Data Saving. remove all other SU tools and SU-hiding apps (optional) if in the Developer Settings Root Access only shows ADB / Deactivate, you have to re-flash your Custom ROM and GApps Enable Developer Settings and set Root Access to "Apps and ADB" Download iSU and install it Give Root Access to iSU, when you run it the first time in iSU: change to tab "Controls" and set "Change SU state" to "Deactivated" in iSU: change to tab "Props" > "Force set all Known props" > "Safe Value" in iSU: (optional...