peter568's Recent Forum Activity

  • No problem, DDP is one of my favorite shooters next to thunder force 3 and giga wing. Good luck on the game!

  • I think I get what you mean. You want auto-fire, but you also want the player to be able to manually rapid fire faster than the preset, right?

    What you could do is fire a shot when the button is pressed, and as long as that button is held, run a Timer behavior on an interval. Every time the Timer finishes, fire another shot. And when the player releases the button, stop the Timer.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Coming back to this now, I think the problem had to do with the naming used to call the JSON. I used 'request URL' and then checked a variable to determine which sheet to grab. It worked fine when I used 'request project file' and manually chose the file instead. Less efficient, but it did fix it.

  • Make a family with all the objects that you need to manage Z order for.

    Give the family a numeric variable to keep track of their Y position.

    Every tick, set that variable to their Y position, then update family's Z order.

    You can check on an 'every X seconds' interval or only when the character moves if you want to save on CPU usage

  • Late response but duplicating the family and checking that worked perfectly. Thank you to both responses!

  • Hi,

    I'm using a JSON script loaded in with AJAX to determine positions and spawn times for enemies. It works as expected on desktop browser, desktop nw.js export, and remote preview on android. But when exporting the game to APK and testing it, the json won't load and none of the enemies appear. JSON files I used for other parts of the game still worked as intended, though, so it seems to be an issue with just that one file.

    When using PC-mobile debugging, this is the error I found:

    What could be done to fix this? Does array size affect whether or not they work on mobile?

    Any help or advice on how to potentially troubleshoot this would be life-saving 🙏

    Tagged:

  • Is there a way to check if a sprite is overlapping another sprite of the same name or family? I'm working on a townbuilding game and want to prevent players from placing buildings/objects on top of each other.

    Tagged:

  • Ok.

    Would it still work if I only used 1 row for the array, and referred to the cell number instead?

  • Awesome, I have rebindable controls for keyboard working now and am in progress of setting up gamepad support.

    Is it possible to convert a gamepad's button index to the button name, in the same way the Keyboard behavior can convert a Key Code to a string? For example, show A/B/X/Y/L/R as the name of the button instead of the numerical index

  • How do you implement customizable controls? I'd like to make a menu the player could go into and rebind their controls, and I'd like to save those controls to local storage for future playthroughs.

  • Actually to re-answer OP's question, I just remembered the Bullet Behavior has an Acceleration value that increases its speed over time, if you're using that.

  • something like:

    Every tick set enemybullet.bullet.speed to self.bullet.speed+0.5

    This.

    Also try to use dt in the formula so the speed increase is consistent across all framerates

peter568's avatar

peter568

Member since 18 Dec, 2020

Twitter
peter568 has 1 followers

Trophy Case

  • 3-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

6/44
How to earn trophies