artheads's Recent Forum Activity

  • I get complaints from my players, and sometimes I see it myself too - a black screen after the game is updated, it happens mostly on iOS, but less often on other devices.

    The problem can only be solved via 'Clear Site Data' in browser console then Ctrl+F5 with enabled 'Developer Mode' on the phone, while connected with USB cable to the desktop computer, what is almost impossible for an average player with iPhone or Android.

    Offline Mode is disabled in the project (as not needed);

    Nginx cache is disabled - Server headers:

    cache-control: no-cache cache-control: no-store, no-cache, must-revalidate, proxy-revalidate

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you use "top" alignment

    Thanks Ash, I'll definitely try 'top alignment' and will back here (hope to mark it as solved) :)

  • Thank you, all guys, now it's clearer. Unfortunately, we'll have to use Sprite Font, despite the lack of some nice features.

  • Try another vertical alignment setting

    Hey dop2000, thanks for the idea, I'll try to change my center/center to something else, didn't think about that :)

    sprite font.

    Yeah... think I'll go with it at the end.

  • Hey guys! I'm making GUI using hierarchy:

    1. 9patch background - parent;

    2. Text with icon - child with transform X,Y;

    Then I just position the parent according to the screen size. This works great everywhere (I mean web HTML5 export) except on God damn iOS... Look at that shift:

    Any ideas on how to avoid this?

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Yes, that sounds promising. Have you researched this aspect of flowcharts already?

  • 500^(increaseRate*loopindex)

    Well, this increases numbers crazyfast. I ended up with round(500 * 3 * loopindex)

    Thank you usbtypec!

  • Hi all!

    How to fill an array with numbers that increases exponentially from a fixed number (e.g. 500) to any bigger number (e.g. 1000000000) with possibility to adjust the settings (I mean step or rate)?

  • I built a simple concept...

    Thank you, bro! A very interesting example and that's what I'm trying to achieve. You're awesome! :)

  • I'm trying to create a simple in-game constructor that will allow players to build a certain object from parts. Some parts can only sit at the bottom and some parts can be only at the top of the constructed object. And all other parts can be in any place except bottom and top.

    The player may want to build an object using random parts quantity, but minimum 2 parts is required for the object to functioning (the bottom one and any other part) and a maximum of 5 parts can be used. Then the data will be saved to array to build actual object during gameplay.

    The first thing that came to my mind is to place an invisible sprite with several image points as "slots" for the parts. It works, and I've attached a project file below. But there are some problems I can't figure out how to solve.

    Main Problem #1:

    If the player takes a bottom part and a top part, they goes to the bottom image point and the top image point, and there is a gap between them because bottom/top parts can sit only at the bottom or at the top. So these parts doesn't connect with each other because of "image points" approach.

    Main Problem #2:

    If I abandon this "image points" approach since it doesn't work as I want it, so, how to "sort" parts? I mean how to place them depending of it's type (bottom / top / others). For example if I place a non-bottom or non-top part first, then place a bottom part - the bottom part must go below any other part. And same for the top part. Any other parts can go in any order between bottom and top parts.

    Little Problem #3

    When a part has been placed I still can replace it with another part of same type (e.g. just changing its animation frame), and I need to recalculate the cost of the each parts used and a total cost of the whole construction. Is there a way to do this without using a bunch of variables?

    There is a C3P file of what I did (dropbox).

    Any help or advice would be greatly appreciated!

    Denis.

artheads's avatar

artheads

Member since 1 Aug, 2015

Twitter
artheads has 40 followers

Connect with artheads

Trophy Case

  • 9-Year Club
  • Forum Contributor Made 100 posts in the forums
  • x4
    Popular Game One of your games has over 1,000 players
  • x3
    Famous Game One of your games has over 10,000 players
  • Viral Game One of your games has over 100,000 players
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies