dupuqub's Forum Posts

  • DiegoM Thanks a bunch for the reply. It all makes a lot of sense.

  • I am now working on a project that demands feedback. I understand that every project without feedback is pretty much doomed, but I'm also still at a point that by being a solo developer I could easily be ripped off. I'm not saying it's an idea good enough that someone would like to steal it, but it's not garbage either.

    How do you balance it?

  • construct.net/en/make-games/manuals/construct-3/plugin-reference/date

    There are the docs and a bunch of older posts on the subject. It's always useful to look for old posts on the forum because many times people ask the same thing. I know I did, and I could've researched more in the past.

    Feel free to ask any doubt you have when trying out the plugin.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You could have a recursive function that calls itself on a timer. That means you have a function that runs and changes a tile, then it waits a bit and calls itself. Lastly you wanna have a condition that stops this function from calling itself indefinitely.

  • The only thing I know is possible is to copy the objects, then global variables, then events from one project to the other, but I'd like to confirm with someone more capable.

    Sorry to bother you dop2000, but I think you're the guy to answer something like this, and I'm also curious about this subject.

  • You could use the Date plugin, mainly "Date.Now", which will give a real-time amount of seconds passed since the year 1970. It's possible to crack it simply by changing the device clock, but the only real way of making it safe is to have a server that checks the time and gives out the rewards.

  • Just to illustrate AllanR answer.

    Both below give the same "50" as a result through "abs()" which means "absolute".

    The image below shows how to calculate distance between 2 points.

  • Hi there.

    If you could provide some clearer drawing or mockup layout, if possible the project or some minor form of it, it would be maybe easier for the community to visualize a solution tailor-made for your problem.

  • Ashley I believe this to be what Construct uses:

    github.com/kripken/box2d.js

    Is this correct? I would love to tinker around to check whatever I can to help understanding the engine's shortcomings, I'm not saying I'll definitely be able to help with anything, but at least it's better than doing nothing.

    Appreciate any feedback, Thanks.

  • I forgot to answer your question about how to reflect changes in the file immediately. You can update the Text object whenever you change the file since you change it through an action, preferably in the same event for a more clear process.

    On another note, if it fits your project, and as stated by mrcgkh, you could use layouts for different scenes, on your case, if I understand correctly, for the different time periods.

    As for JSONs, the basics are using the Object AJAX to request a file (it can be from your project or from the web) and then parse it (put the data) in a JSON Object (a File becomes an Object). This data can be accessed through the expression "AJAX.LastData" inside the condition "On completed" or "On any completed" from the AJAX Object, depending on how many files you're using.

    If there are many files, tag them, which then serves to track when they're finished loading and makes it possible to put each JSON file into its correspondent JSON Object easily.

    Every change you make should be addressed to the Object and you can see it taking effect immediately.

  • There is also the deal with the never sleeping bodies now. I could wait for the next issue to arise, but if I can always test on the source and provide some more clear data (or not) it would be better than every time I find any issue I come here where noone can do anything about it.

  • Couldn't bake in your own sleep system that compares object velocity and then sleeps the physics behaviour, sets the angle to flat, and then enables again when you deem it necessary (on input, on distance with moving object etc)?

    Yes I could, but this is not what Construct is about (at least what it is said to be about). If I just go make my own Physics tools then Construct loses its value for me.

    Ashley, I will try to investigate Box2d issues to try to assess wheter or not there is something wrong here, can you disclose which Box2d Javascript port Construct currently uses? I found many, but it seems better to just test the one C3 uses since it won't be tested by you.

    Thanks is advance.

  • At least consider something, because the gif below shows completely out-of-the-box settings with Gravity = 10 and the objects never sleep in V-Synced mode.

    At this point is useless having "is sleeping" function as well, just pointing this out as it seems more trouble brews within the Physics engine.

  • You've made real progress, congratz!

    Arrays are great and your current data system could easily be your final version, it could be totally considered a professional setup, but again I'd recommend you using JSON files if you ever have some spare time to tinker with it. They work structuraly just like your files right now, but they are far more organized and universal.

    Looking forward to your development, congratulations again!

  • Ashley, therefore physics is unusable with Gravity > 50. At least in some cases, certainly mine and blackhornet . Don't you think there should be a note somewhere in the docs about it? It is a major deal and we currently know what causes it, gravity.

    Also it's very disheartening seeing that something like this can't get fixed, I don't believe this would be the case in any major game development platform, and as always, Construct is my favourite one, but sometimes it really punches me in the guts.