damjancd's Forum Posts

  • Here's an example from the game. The mountain is clipping the lower hexes :(

  • How about this as an option?

    https://www.construct.net/en/forum/construct-2/how-do-i-18/how-do-i-control-the-z-order-d-96537

    Thanks for your help man, no worries on jumping on guns.

    I tried this with an object but I have three objects of the same type that need to be jumped in front of :(

    A Z order index would be so much simpler than this wacky workaround way

  • graham-s Zelevation is for quasi 3D, not sure how i can use it here to change z indexes

    Can you give me a hint on how I could use it?

  • I've found a 10 year old thread about a similar question where the idea was proposed that Construct could use numbers to just apply to a sprite and move it there which made sense and would've solved my issue.

    An ordering system using For each sprite.y ascending and then move to top was the option offered by Ashley

    It doesn't work for my project since my project is a hex based game and the hexes are settled Z order at the start and then they move Y position throughout the game (they move Y and they CANT move in the Z order while moving)

    Assigning a Z order with a number or a variable would seem the intuitive way to make this happen and a simple way.

    Anyone knows a simple workaround?

    Tagged:

  • Nepeo, thanks. Will give it a look.

    I keep having a very strong feeling that I do about a billion things wrong and would love to skip a few steps for creating constructive habits.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • A blogpost, book, essay etc of really nice, broad heuristics, simple habits that exponential improve programming productivity?

    I've read zero things like that, was wondering if anyone knows a nice resource, something that C3 level programming would benefit from. Not machine code programmers level.

    Thanks !

  • OK I got replies by two of one of my favourite people in this place. blackhornet R0J0hound thank you very much. I appreciate both of you and you are an incredible treasure to this community. Either you directly or your work has helped me in multiple instances.

    blackhornet That's a great plugin, I wonder why it's not a part of the default plugins of C3. Seems like a basic necessity to pick unique randoms. Thanks

    R0J0hound I tried doing it with strings and then I just search for ","&theNumberItself that way I can use decimals :p It's really interesting to me that such a basic and simple looking thing (getting a unique number) takes so much effort to get done.

    It's deceivingly complex. Our intuitive presumptions of complexity have nothing to do with reality :p

    I'll try this if plugin slaps me too hard. Thank you sir!

  • Hi,

    Was looking around for all the solutions available on the forums and tutorials but for now I haven't found a simple enough method to do this that doesn't run multiple times until it hits the right number that doesn't exist. That seems unnecessarily wasteful.

    So I was thinking if it's possible to get non-repeating random numbers from a pool which gets smaller every random pick so we ensure the same number doesn't get picked twice. There's gotta be a way to do this without using arrays or regex.

    Tried to do it with replace and turning it to a string and back but to no avail since I can't turn a string into an expression.

    Anyone has some cool ninja ideas this could be done?

    Thank you

  • You should use rgbEx instead of rgb (rgbEx has the same 0-100 scale as everything else, and supports out-of-range values e.g. 200, -50 etc). There's no need to type in the number directly, you can use the rgbEx expression in the parameter.

    That's not very discoverable. Had to google it and get here to find out. Would be nice for new users to know how to input and if it's rgb or rgbex used in the specific case without leaving C3

  • Thank you it works well!

    Thank you for your help. Hope it's not too hard on cpu, the game is supposed to be mobile :)

  • Doesn't seem to work on my end.

    Not sure what I'm doing wrong :p

  • I have a lot of balls moving around and what not, I want to focus on the largest concentration of them balls dynamically. Once there's a bigger congregation somewhere else, it scrolls-to there.

    Any ideas how I can do this cheaply CPU wise?

    Thank you Construct 3 community!

  • I can't seem to get my head wrapped around quads. Don't even know what quads are. Quadratic functions?

    Anyway I tried to clockwise starting from top left adding values to draw a simple square, but I can't. Tried counter clockwise, still nothing. Literally nothing being drawn.

    Anyone has any examples?

    Also is it possible for complex shapes to be drawn like circles elipses etc?

    I'm trying to do procedural genesis of different ships using Paster but I want to learn more about how this drawing works.

    Thank you

  • hey , the Paster plugin, even though it's still wonky, does everything I need so far. Sorry for not writing earlier :p Found it yesterday.

  • Can we run a mini kickstarter and pool our money together?