dop2000's Recent Forum Activity

  • I didn't mean layout layers. I meant an instance variable - like CardLayer or CardLevel. It would make a more robust system.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It depends. Will something like this be possible? Can a card overlap more than 2 cards above it?

    You'll probably need to introduce levels or layers, instead of relying on z-index.

    Say, the king here is on level 0, ten is on level 1, and seven of spades is on level 3:

    Then you could process cards in a For Each ordered loop, from the bottom level, picking up cards that overlap it and are on (Self.level+1), and add them to the CoveredBy list.

  • Check out this Ashley's comment:

    construct.net/en/forum/construct-3/general-discussion-7/games-nwjs-183964

    He's talking about Local Storage, but I imagine system saves work the same way.

    You can save the full state of the game to a file.

  • If you are using Download action, I don't think there's any way to prevent this.

    In a desktop app you can save/overwrite the existing file using NWjs or FileSystem plugin.

  • Try removing "Is overlapping Deck" condition in the function. If it fixes the issue, then investigate why some cards may not be overlapping the deck. Or move this condition in front of the For Each loop.

  • Are you sure that the origin point and collision polygon are the same in all animations and frames? When you have so many animations, it's better to use a separate invisible sprite for the character - with pathfinding behavior. And attach the animated sprite to it.

    Do you know why the character gets stuck? Does "On failed to find path" get triggered? Pathfinding only works within the layout bounds, so make sure the layout size is correct.

    Anyway, it's a guessing game without the project file.

  • igortyhon The function won't have access to the newly created instance of Cards. You need to add "Wait 0"

  • Border 50 seems too much for cell size 16. Read about cell and border size:

    construct.net/en/make-games/manuals/construct-3/behavior-reference/pathfinding

  • Most likely the event where you play the audio file is repeated on every tick. So the audio is repeated as well.

    Give this audio a tag and add a condition checking that the tag is NOT playing.

    Audio tag "tagname" is NOT playing : Audio play Sound with "tagname"
    
  • if, for example, "simulate right" and "simulate down" at happening at the same time then the character should move down-right at a 45 deg angle. Not sure why your solution doesn't do that.

    What do you mean? It works like that in my example.

  • This happens to me too sometimes.

  • Also, if I copy the enemy function control group directly into the level 2 event sheet, the enemy works fine.

    You mentioned that the all levels share the same event sheet?

    If the enemy code is on a different event sheet, you need to include it into other sheets. Right-click on an empty space and choose "Include event sheet".

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 262 followers

Connect with dop2000

Trophy Case

  • 8-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • 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
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • x5
    Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • 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
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • x3
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x13
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

28/44
How to earn trophies