2feade37df974cec98105462827062da's Forum Posts

  • 5 posts
  • fm4fanAT, thank you very much! It works fine now. As I understand, I have to do the same thing to remove temporary effect:

    itemIsActive = 0
    Trigger once
       Atk = initial Atk - bonus[/code:2ug5v6st]
    Correct?
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Good day, C2 community!

    Say, I have a RPG Hero with stats: Atk, Def, and so on. And a Hero have an item that can be activated and deactivated at any time by pressing the button.

    I need to do the following: when an item is Active, the Hero have temporal stats changes: +2Atk/+1Def and so on, and when item is Inactive, the Hero have its initial stats.

    I've tried to use "while" loop:

    While [item is Active] Atk = initial Atk + bonus[/code:2xgic75x]
    and System-Compare Values event:
       [code:2xgic75x]itemIsActive = 1
       Atk = initial Atk + bonus[/code:2xgic75x]
    but I get the same result: in every tick Atk increases at "bonus" value. I understand why it happens, but this is not what I need 
    So, please help me. Thank you.
  • I got it. I can retrive tile ID with "Tilemap.TileAt" with "PositionToTile" as arguments. mindfaQ, thank you for your attention, anyway

  • Hello everyone.

    Let's say I have top-down game with different types of surface: water, sand, forest, etc. I've created the background with Tilemap object. Type of surface affects gameplay: -50% Move on Sand, +40% Defence in Forest an so on. To apply these conditions I have to read tile ID in Player position. The only way I know - use "Compare Tile At", but if I have, say, 10 different types of surfaces, I have to make 10 events. Is there more elegant way to get tile ID?

    Thank you.

  • Hi everybody. The name is Sergey, from Moscow of Russia. After a walk with the bear and drinking vodka, in Russia we still have time to do some cool stuff like game design

    I'm not a pro in gamedev - just curios how it works. So I've decided to try some ideas...

    Currently I'm learning C# and Unity, but when I heard about C2, I realized that this will be a perfect tool for prototyping. So I hope it will

    Oh. I've read about C2 on GameAnalitycs blog.

    Thank you for your work, guys!

  • 5 posts