funcooker's Recent Forum Activity

  • My game is going great but there are 82 collision checks a second at the moment. My laptop gets audibly louder when I test it. The game is only running at like 40 fps. And its only a test room right now.

    I just can't avoid using all these "is overlapping" cases. Is the player overlapping a ladder when they press up? Are they overlapping a water sprite? Are they overlapping a moving, but solid platform at an offset?

    Does anyone have any tips for reducing these collision checks? If I add more conditions like "is on screen," "is falling" etc, will it help reduce the number of background collision checks or just increase processing because now the game is trying to check for even more conditions. What do y'all do to keep Construct running squeaky clean?

  • Thank you so much, you really saved me! I can learn from this, thank you for notating it as well!

  • I'm back again! Hit another block that is confusing me.

    At the start of the layout I spawn two random groups of "gem" sprites. (Right now they are two different sprites so I can have more control over how frequently the larger gems appear.)

    The gems:

    Can't overlap each other

    Can't stick outside the board (or overlap with offboard sprites)

    Can't overlap the yellow "rock tiles," tiles that are on frame 5

    Must stick in the grid formation (they are currently doing that at least)

    And additionally, after they're all spawned I have to be able to keep track of how many exist

    Right now they're spawning on top of each other, spawning partially outside the board, and spawning on top of tiles I don't want them to spawn on.

    I was trying to do a system while gem is overlapping thing it shouldn't be the gem position is put randomly someplace else, in hopes that it would just keep shifting them around until they're not breaking any rules. But this really doesn't seem to make any difference. I think I'm probably just making a dumb mistake or missing something. I feel like I hit a wall again so I'm posting this in hopes someone can help me out! Thank you!

    https://www.dropbox.com/s/9r1xozyi0e9by ... .capx?dl=0

  • My layout has a 32x32 grid. There is a grid of 32x32 sprites. And there is a sprite that's stretched out to cover this grid.

    However, when I go from Construct 2 to the web preview the grid shifts positions.

    I'm having this issue with other objects as well , somehow managed to get them working by changing origin points, changing their layers, etc. I honestly have no idea what is happening with this object. In the file provided its on a different layer than the objects in a grid, but if I put it on the same layer it still does this. It never seems to stay in place over the grid. Its starting to drive me nuts!

    dropbox.com/s/6mmm80f8vdnqba7/HudAnnoying.capx

  • Thank you! This works!

    Rough demo of this in case anyone else wants to check it out:

    https://www.dropbox.com/s/e56t71czd4vx0 ... .capx?dl=0

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I am trying to set up a top-down adventure game-type thing.

    Player clicks a location and the character moves to it using pathfinding. If they tap or click an object or a different character, they move in front of that object/character and trigger an animation, dialogue, etc.

    My issue is, I don't know a clean, best practices way to trigger a reaction only if the pathfinding is resolved and the character reaches their destination.

    For example, if a player taps a hammer that is across the room. The hammer has a variable that is the X,Y coordinates. The player character uses path finding to move to those coordinates. While the character is moving over, they can tap somewhere else to change directions without consequence. But if they don't and the character reaches the hammer, an animation plays and they pick the hammer up.

    What I was trying to do was have a global trigger to distinguish between the character performing an action vs simply moving, and then a variable that is a unique name for each action ('hammer'). So if you tap a blank area they can walk to the variable is set to walk, if they tap an interactive object the variables are set to action and a specific title for that action ('hammer').

    So then if they reach the coordinates for that action, while global trigger is set to action and the unique name 'hammer' matches up, it disables player input for a second and triggers the right stuff for hammer.

    None of this was particularly working for me, plus it already feels very complicated.

    Does anyone have an experience with a project like this? I can try to post a project example later but so far the general path finding is the only thing thats really working.

  • Thank you for this script! Its really amazing and has a ton of potential.

    I was trying to deconstruct your test file to figure out how I can use this dialogue tool to my own liking. However, my dialogue practice just doesn't seem to trigger at all.

    https://www.dropbox.com/s/p4m8nb4notfo8 ... .capx?dl=0

    I understand if you dont' have time to look at this, I'm going to keep picking it apart and maybe I'll learn something, but I'd appreciate if you had time to point out what I could be doing wrong.

    Thank you either way!

  • I just bought this system, it looks great, I'm excited to get it up and running but hitting a wall.

    I followed your steps to add the event to my own new project. Calling the start dialogue function is still not doing anything for me. Could you please add an example capx or at least a screenshot of how a dialogue box is called? Then I can at least compare and figure out what part of this I'm not getting.

funcooker's avatar

funcooker

Member since 1 Feb, 2013

None one is following funcooker yet!

Trophy Case

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

Progress

14/44
How to earn trophies