AnD4D's Recent Forum Activity

  • > Just have it shoot a bullet. Then when it makes contact with a wall, have Construct pick the wall closest to the impact point. Then have the moving block or whatever it is tween to that location. That would allow you to include cool tweens like bounce, to really improve the look of the impact.

    thanks for the answer but i don't quite understand what you want to say, give the tween effect to the character so that it looks like it is not instantaneous, but as if it has crashed and returned?

    Send me the code and I'll show you what I mean :)

    Just realised this forum has no DM stuff... are you able to invite me to a discord or join mine? discord.com/invite/KaWdcYx

  • Just have it shoot a bullet. Then when it makes contact with a wall, have Construct pick the wall closest to the impact point. Then have the moving block or whatever it is tween to that location. That would allow you to include cool tweens like bounce, to really improve the look of the impact.

  • Anyone know how to get this to work?

    If you turn on bounded scrolling, the Normal Maps plugin stops working properly.

    The light is meant to follow the mouse, and it does normally, but stops when the screen moves.

    https://1drv.ms/u/s!AlZkRk7KfdFFjdh8EJRgNdj2ac00Ug?e=1Wktxf

  • I've been working on a game perfectly fine for several months, but today when I loaded it up, the preview displays a black screen. I can still hear the music and the cursor, but the game itself doesn't appear.

    I then loaded an old save from a week or 2 ago, and that is also failing to load.

    I updated my graphics drivers in the hope that might fix it, but it didn't.

    I then redownloaded Chrome in the hope that might fix it, but it didn't.

    Finally, I went through all the Construct 3 settings, and eventually found that turning Worker mode off allowed me to see the game again.

    Is anyone else getting something like this happen to them? Has Chrome had an update that might cause this problem?

    Do I have to work with Worker mode off for the foreseeable future?

  • A simple example of how I can parse a string via tokenat and compare the right part as a number or as a string.

    Using this method you can pull out the right parts of the string.

    But I would rather do everything through arrays, it's better than parsing files.

    Unfortunately that won't work, as you're only checking if it's equal to 5. What if I need to check if it's less than, or greater than, or a different number entirely?

    Also, you're only checking that the numbers match. I need to check the number against a particular variable which could change at any time.

    I could brute force it and account for every combination, but that wouldn't be remotely efficient.

    In the end, I decided to do it in javascript and convert everything to a string for the comparison.

    let tokens = runtime.globalVars.Example.split(' ');
    let variableName = tokens[0];
    let comparison = tokens[1];
    let comparisonValue = '"' + tokens[2] + '"';
    let value = '"' + runtime.globalVars[variableName].toString() + '"';
    runtime.globalVars.PassFail = eval(`${value} ${comparison} ${comparisonValue}`) ? 'PASS' : 'FAIL';
    

    I can then check the PassFail var to see if it was a match or not.

  • Hi.

    Can you tell me what problem you are trying to solve.

    If I gave you a text file with "varName == 5" in it, how would you code Construct 3 so that it checked if varName is equal to 5.

    Additionally, how would you code it if "varName <=2"

    Additionally, what if "varName == XYZ". How would you code it so you can check if the variable varName is XYZ?

  • Say I have a string called strVar that contains the text "Example == 5"

    How would I be able to run a check that a variable called "Example" is equal to 5?

    Additionally, if the string was changed to "Example <= 5" how would I be able to check that it is equal or less than 5?

    I've been unable to figure out how to reference a variable by a string.

    I tried putting strVar in an evaluate expression, and hoping that would just work, but sadly it doesn't.

  • What other Steam games are there that were made with Construct 3? I imagine all of them are suddenly getting this issue.

  • If you save your prject in a higher version you cannot open the project in a lower version later. The version number is saved as a string within the file.

    The reason for this is that some new features (or breaking changes) might be introduced in newer versions.

    If you for sure know that you have not used any new functionality you can alter your files to switch back to the old version.

    As mentioned, I reverted to 344.2 then tried to open a version saved with that version. That's the error message. If I try to open something newer, it won't let me. It says "This was saved with 350."

    It won't let me open these files in 344.2. That's the issue. I can open files saved earlier than 344.2, but not those saved with it.

    this is not due to r350 but the nwjs version being falsely marked as a trojan (https://github.com/nwjs/nw.js/issues/8090). You should be able to keep using 350, but be sure to export with an older nwjs version

    I'm exporting with v71 in the nw.js as that's the only one that works with Steam. It's the same version I've been exporting with for 4 months without issue.

  • I have been working on a game for months on Steam. It has been played without issue for all that time.

    I recently updated to version 350, and suddenly all my exports are being registered as containing viruses.

    I decided to revert back to version 344.2, but now it's unable to open any projects that it used to be able to. It says

    These files worked fine when I was working in v344.2 so why aren't they now?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • dop2000 suggested I try changing the way fullscreen was being called... and holy hell... that seems to have fixed it.

    Hopefully this thread helps others if they run into the same issue!

    What do you mean "Changing the way fullscreen was being called"? I'd love to try that out, but I'm not sure what it means.

  • I used to play my game on the Steam Deck without any issues at all. Then, one day, it suddenly stopped working. I didn't change anything apart from upgrading to a new stable build.

    That was approximately 6 weeks ago. Never been able to get it working again since.

AnD4D's avatar

AnD4D

Member since 4 Nov, 2011

Twitter
AnD4D has 3 followers

Connect with AnD4D

Trophy Case

  • 13-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

20/44
How to earn trophies