Daggio's Recent Forum Activity

  • wait, there's a "function" in there? how come I never notice? must be a new feature

    anyway, thanks :D

  • owh, I need a newer version of construct to open the file. Turns out mine isn't up to date enough.

    I'll check it out later, but thanks

  • ouch, no reply yet?

  • Hi guys,

    I want to make some kind of small RPG, in this RPG the battle happens automatically. So the player would run/walk and meet enemy, and they'd automatically fight.

    My game has several state, one of them is "inBattle" state. In that state there are a few phases, like: defineAttacker, calculateHit, calculateCritical, calculateDamage, and dealDamage. The problem I'm having is in the dealDamage phase.

    what I want to achive is character (player) and monster take turn attacking depending on who is attacking this turn (decided in defineAttacker). But it seems while the monster is in the process of attacking, the attacker changes to character. So the character attack before the monster even deal its attack.

    I think the problem is in the attacker variable, because the value change fastly when it is monster's turn. I know that is the problem but I don't know why that problem happens, because the attacker is decided in the defineAttacker phase.

    So I want to know, is there a good way to manage states (or phases), or there is a way specific for construct to manage it

    here's the file in dropbox: dropbox.com/s/t6i9qf725vcvglz/EXP%20project.capx

    thanks

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Greetings :D

    I am Arya, from Indonesia, I just purchased a personal license of construct 2, hope I can make some great games with it

    btw, is there any tutorial on how to publish to iOS and android? because I don't see an additional option in the export window, even after I purchased a license.

    be lurking this forum around :)

Daggio's avatar

Daggio

Member since 29 Apr, 2013

None one is following Daggio yet!

Connect with Daggio

Trophy Case

  • 11-Year Club
  • Popular Game One of your games has over 1,000 players

Progress

12/44
How to earn trophies