Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Creating timed button press RPG Combat

Discussion in 'Scripting' started by bryanaugst_unity, May 6, 2021.

  1. bryanaugst_unity

    bryanaugst_unity

    Joined:
    Apr 26, 2021
    Posts:
    6
    I'm in the very early stages of making my own RPG but I want to use the sort of combat found in the Mario & Luigi games/ Super Mario RPG. So I was looking for anyone who might know how to go about developing a time button press combat system for an RPG in Unity.
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,756
    There may be some people out there. If you choose a specific game and say "Unity make GameX" you'll find even more-targeted tutorials.

    Screen Shot 2021-05-06 at 7.44.01 AM.png
     
  3. bryanaugst_unity

    bryanaugst_unity

    Joined:
    Apr 26, 2021
    Posts:
    6

    I tired that and haven't gotten anything. obviously I googled it first.... I'm looking for people that know how one would go about implementing that kind of combat. If you don't know maybe not waste time with "just google it" thats so douchey.
     
    Last edited: May 7, 2021
  4. Lurking-Ninja

    Lurking-Ninja

    Joined:
    Jan 20, 2015
    Posts:
    9,907
    If you're looking for people to collaborate with or to teach you, then try it in the job section of the forum (there are paid and non-paid topics).

    In this topic, you can try to implement it yourself and if you stuck somewhere or you can't overcome a bug or something, then you can ask questions here presenting what have you tried so far, why you think it is not working and what is the expected results. So we can help you with concrete code.
     
    Kurt-Dekker likes this.
  5. bryanaugst_unity

    bryanaugst_unity

    Joined:
    Apr 26, 2021
    Posts:
    6
    man you people are such dicks
     
  6. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,529
    Please refrain from posting such stuff.

    Unfortunately, what you're asking for on a forum (a system) isn't a simple answer so beyond looking at tutorials, each of which covers bits of what you need or finding articles, a forum isn't going to be the place to get you the info you need hence the suggestion you search online or try some collaboration with those who do know this.

    Forums are best to give you links for further learning or answering questions on specific features and not so much how to write full systems.

    Also, here's a Reddit post which looks like the same question with the same answers: https://www.reddit.com/r/Unity2D/comments/myvoia/creating_timed_button_press_rpgs/
     
  7. Chubzdoomer

    Chubzdoomer

    Joined:
    Sep 27, 2014
    Posts:
    106
    I've never made a system like this before, but one approach you could try is to use Animation Events to determine when the window for the timed key press "opens" and "closes." The so-called window could be represented by a single boolean.

    If the player presses the correct key between the open--close period, then bonus damage is applied to his attack. If he presses the key BEFORE the window has opened or AFTER it has closed, however, then he fails and the attack does normal damage.

    I'm sure there are tons of different ways to go about it, but that approach seems like one of the simplest and easiest to set up/modify.
     
  8. Lurking-Ninja

    Lurking-Ninja

    Joined:
    Jan 20, 2015
    Posts:
    9,907
    You came back 16 months later just to call me that after you were too lazy to even start? How's your game going?