• Advertisement
  • Popular Tags

  • Popular Now

  • Advertisement
  • Similar Content

    • By abarnes
      Hello All!
      I am currently pursuing a degree in video game programming, so far I have completed an intro to programming course and object oriented programming course. Both were taught using C++ as the programming langauge which I know is very popular for game development, but in these classes we do not actually do any game development. I would like to start to build my skills with C++ for game development as that is a common required thing for a job and am looking for ways to do this. Any recommendations such as books to read or youtube videos to watch will be greatly appreciated!
    • By vividgamer
      I have a native iOS game (objective c, XCode build) which I am considering to port to other platforms.
      Core gameplay is based on solely on geographical maps, and custom drawing over maps. It also has Core Data. This part is complete in development.
      What is not done yet is: monetization, gamification (leaderboards, challenges) and multiplayer functionality.
      As I think more about it, I am tempted to think if this is the right time to move to a cross platform tool such as Unity. But before dedicating time to port my 5 years side-project effort in Objective C, I really want to know if its worth it.
      - Does Unity support such plugins / assets that will fulfill all my above requirements?
      - Unity Personal seems to have only 20 concurrent users - is it too costly scaling if I decide for extending to web and android platforms?
      - What is the general workflow involved in publishing to iOS, Android, PC, and web platforms while using Unity? I mean to ask about various points of signing stuff, paying fees and getting certified.
      - How long will it really take to port my entire Objective C project into Unity? I am somewhat familiar with C# but I am finding it hard fidgeting with Unity IDE as lot of things are focused around FPS and 3D while my game is still 2d - not much action involved. I seem bit overwhelmed by the list of features I see there. All in all, I do not want to lose my momentum while still making sure its portable to everywhere.
      - Any assets I could use (for free to try basis in debug) that are relevant for my game?
      - Last but not the least, are there any costs that I need to be paying upfront to Unity, for using it (apart from their monthly subscription model)? I don't understand their costing for multiplayer in conjunction with their subscription fees - if someone could kindly elaborate.
      Thanks in advance for your time reading a newbie
    • By AlphaWolfKing
      Hi everyone, as summer approaches and the college semester comes close to ending. I want some books or resources you would reccomend to a beginner video game programmer.
      On a side note, what are the important calculus topics that are applied to programming video games?
    • By FFA702
      I've been working on a small 3D game maker app for a while, but it's now shaping up to be a full fledged (albeit simple) all integrated 3d engine. I think it's promising in the sense that I've built the App I would want to use, and I can see people (mainly beginners) using it for a lot of applications. It has no name yet. I don't plan on making it open source or selling it. I'm just considering setting up a small website with some documentation and a download link. 
      What kind of license would I join with the tool given that:
      I want people to be able to use it freely
      I want to be completely free of responsibility
      I want to prevent people from removing, let's say (hypothetically, not sure how I'd go about this yet), a small banner advertising my software at startup from the application the software would produce
      The tool was developed in visual studio community 2017, using C# and a single external library, openTK
      Is there anything else I should think about ? Perhaps when naming it ?
      EDIT: Also, what about, let's say, a logo, or a design pattern (Artistically speaking) I would use throughout the program and the documentation to make it easily recognizable. How would I go about protecting that ?
      Thanks guys
  • Advertisement
  • Advertisement

C++ C++ : 1st Person Melee Combat in

Recommended Posts

This game's 1st person mechanics really caught my eye.  

" rel="external">Mordhau Would anyone know the beginnings of the programming required for combo moves from the player?  I understand this is a general question and has a broad answer, but any advice from someone who has programmed something similar on the PC is appreciated. 

Note: I intend to start with the Unreal engine.  I am very early in C++ (I worked as a concept artist previously so all my game's UI/World mechanics have filled notebooks upon notebooks without programming to realize them).

This is my first post on this forum, please excuse me and notify me if I am posting in the incorrect area.  

Thank you

Share this post

Link to post
Share on other sites

To program combo moves, you'll probably need to start with a queue data structure: i.e. as the player presses buttons, you'll want to enqueue those key/button presses, along with a timestamps of when the key/button was pressed. That will allow you to evaluate whether or not the player entered a "do something cool" key combo, and if so, you can then kick off some action, such as the "animate the character doing something cool" animation.

Bear in mind, I've never used unreal engine, so I don't know the particulars of what do with it. But generally speaking, combo moves call for a queue.

Share this post

Link to post
Share on other sites

That article is a part of the solution. The article is about sending data around between systems.  Usually in games there is an event system that any code can listen to which says what has happened.  That's the system described.

Your combo system can be listening to the events described in that article.  When the combo system notices specific event patterns it is looking for, such as multiple hits in a row without a miss or a block or an enemy hit, then it can react as a combo.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement