RafaelMatos's Recent Forum Activity

  • RafaelMatos

    Yes JSON+ would definitely help for that purpose, not only because it would be far easier and efficient to pick and to use, but also thanks to all the enhancements that are provided in JSON+ and listed in the addon page.

    As I explained 2 messages above, it allow you to nest any amount of data under the same behavior. You could replace most if not all your Arrays and Dictionarries with a single JSON+ Object or Behavior if it makes sense in your Project.

    You can create/nest JSON arrays at any Path and JSON+ comes with handy Quality of Life enhancements and ACES for Arrays.

    Does it have autocomplete for existing keys?

  • Overboy Thanks for the explanation

  • I'm not sure how UID to everything works. If I don't ever mention the object/family how would I know/ensure the UID is the one I need? Kinda confused about this tool's proposition. Prints of a more practical use cases would help a lot to know upfront. I'm tempting to buy it because instance picking can be quite troublesome and repetitive, even using functions in order to not repeat some of the picking process can be weird to work with but still too much work when you need more complex instance picking. The per class family limitation is also not so convenient.

    I'm considering buying the JSON+ too because I just use array/dictionary for every piece of data. My process to get all the data without too extensive expressions is to initially feed all data into an array and then, a one time event which pass all this data to the family instance variable. The data would be accessed using global variables for the coordinates in order to not hardcode it. Without this, I'd have to mention the array using variables for the coordinates every time I need to get some data and this process seams too ineffective but that's the only way I found to mix the use of a powerful data management and the accessibility of instance variable and avoiding extensive calls.

  • You do not have permission to view this post

  • This sounds interesting, are you basically thinking of an array as an instance variable? If I’m understanding correctly this could be a useful feature!

    Instead, you could look into using a dictionary instance per object and/or one or more arrays. Or a comma separated instance string variable and then use tokenat/count to loop through where necessary.

    Not an array, just a way of running a loop through instance variables.

    About your idea of dictionaries and arrays, this is exactly what I explained in the first post ^^

    If instance variables had an index would be great as we could put the heavy stuff in an appropriate data structure like an array or dictionary and then loop through all it's data and replicate it's final values into instance variables. In a situation where the array holds the initial value and several modifiers, we would hold the final value in the instance variable, making it much easier to access it and more readable

  • Is it something that could be added in a near future? It would be great because it'd allows us to keep more of the data assigned to the respective object and make families and (now)custom actions even more useful. It would also make code much more readable.

    The idea behind this is that, for something that requests a large amount of variables, I usually use arrays and, to get this to work properly without getting lost of which cell is what, I need variables to hold these coordinates and this is fine. However, simple operations involving these variables makes it too troublesome and polluted by too much calls. I always use functions to get rid of most of it and return the value I need but still, it's nothing compared to the simple way of calling an instance variable, it's short and readable.

  • > I haven’t used them but that was mainly because the debugger didn’t let you step through loops and sub events or per condition and per action.

    Ah, yes, clicking 100 times to step past a loop is super fun.. (not)

    > I use them as a last resort, but never really had much trouble getting them to trigger!

    One example is a breakpoint inside a function that returns a value. You can add it, but it never triggers.

    You don't need to XD Just create a blank event after the loop and put the breakpoint on this event. Events that returns values is indeed annoying too, along with all other events with the same limitation, like triggers, etc. Debug mode in construct is just too limited I think but it's still quite helpful sometimes.

  • Use a solid image instead of pieces? Looks like a pixel rounding issue.

    I'm not using pixel rounding and it's a jigsaw puzzle, that's why I have them separate.

  • The text is rendered by the browser and some browsers don't scale text smoothly. I think what happens depends on which browser you're using. IIRC I filed an issue with at least Safari for text scaling not being smooth, but nothing much has changed.

    That's ok. I'll try spritefont. But since you're here, could I ask you a quick insight on another thing? When I change the window size the drawing canvas gets slightly distorted, like 1 pixel smaller and create that tearing effect between images.

    Is it possible to avoid that? I tried all Display settings combinations but nothing helps.

  • Have you tried with a sprite font instead of text? It may work better. From what I recall, the text object is particularly inefficient, such as when updating large amounts of text every tick. I assume transformations are the same.

    If the text object is that bad then I have no other option =/ I didn't want to use spritefont because of the extra work to make the sprite itself but I'll do it. Should work since it is essentially just sprites put together.

    Thanks ^^

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello! I have a weird text behavior that I've seen for a long time and never tried to ask someone before why this happens. I have a few text objects linked(hierachy) to a sprite. This sprite is a card and the text object is the information about this card. Whenever I hover my mouse above it the card and all its text increase its size a bit. The sprite goes super smoothly as expected, but the text is really inconsistent when this scaling happens. Anyone knows why and how I can fix it?

    I also noticed that when I have just a few more texts scaling at the same time It starts to greatly impact the frame rate, like 144 to 88.

    Thanks for any help.

  • This should work I think. It lerps between the start and end in a straight line. Then also moves in a parabola.

    https://www.dropbox.com/s/ilxsoyy7mmm04dc/jump_path.c3p?dl=1

    Works perfectly, exactly what I needed. Thank you very much, Rojo and oosyrag for your time.

RafaelMatos's avatar

RafaelMatos

Member since 8 Mar, 2014

Twitter
RafaelMatos has 1 followers

Connect with RafaelMatos

Trophy Case

  • 10-Year Club
  • Entrepreneur Sold something in the asset store
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

18/44
How to earn trophies