How do I Properly code if relative in Construct 2

From the Asset Store
Casino? money? who knows? but the target is the same!

    GML stands for Game Maker Language

    I Jason know a GML version of working error free if relative such as

    Sarah
    Create Event:
    hp = 127;
    hp_times_by = 1;
    hp_plus = 0;
    hp_minus = 0;
    hp_divided_by = 1;
    
    Step Event
    if (hp_divided_by <> 1)
    {
      hp /= hp_divided_by;
      hp_divided_by = 1;
    }
    if (hp_minus <> 0)
    {
      hp -= hp_minus;
      hp_minus = 0;
    }
    if (hp_plus <> 0)
    {
      hp += hp_plus;
      hp_plus = 0;
    }
    if (hp_times_by <> 1)
    {
      hp *= hp_times_by;
      hp_times_by = 1;
    }
    if (hp_times_by = 32)
    {
      x += 15;
    }
    if (hp_minus = 32)
    {
      y -= 15;
    }
    if (hp_plus = 32)
    {
      x -= 15;
    }
    if (hp_divided_by = 32)
    {
      y += 15;
    }
    if (keyboard_check_pressed(ord("D")))
    {
      hp_divided_by = 32;
    }
    if (keyboard_check_pressed(ord("P")))
    {
      hp_plus = 32;
    }
    if (keyboard_check_pressed(ord("M")))
    {
      hp_minus = 32;
    }
    if (keyboard_check_pressed(ord("T")))
    {
      hp_times_by = 32;
    }
    [/code:3dnffg5s]
    
    In Construct 2 how would I properly code up above coding
    but instead of using GML
    I use the coding language of Construct 2?
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)