dop2000's Recent Forum Activity

  • The image points are defined on the enemy sprite, not on blocks. And it's easy to replace blocks with a tilemap:

    dropbox.com/scl/fi/s813xhmap2se856wdzta0/WalkAroundWalls_Tilemap.c3p

  • I made this demo a while ago, maybe you will be able to adopt it for your game:

    howtoconstructdemos.com/enemies-walking-around-walls-metroid-style-or-patrolling-the-perimeter-enemy-ai-capx

  • Remove last two events and use this one:

    On Every tick: Set layout scale to lerp(layoutScale, ZoomTarget, 10*dt)

    You can try other values instead of 10 to make it faster/slower.

  • My question is: Shouldn't this OR block that's nested underneath my AND block still fire off these actions (when the AND block is not satisfied)

    No. If the conditions in the parent event are not satisfied, then the entire event won't run - including all sub-events. It doesn't matter if there are OR-blocks or AND-blocks or empty blocks in sub-events.

    If you put a breakpoint and run your code in the debugger, you'll see how the engine processes it step by step.

  • ChatGPT to the rescue! :)

    It's possible to fake URL parameters in preview or debug with a bit of scripting:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Do you need to read the contents of the file?

    In this case you have to access it with AJAX:

    You can use "AJAX Request URL" action if you want, and type the name of the file in the URL field.

  • with everything formerly worked on there, how would I now implement the new into the old?

    It's your game and only you can answer this question. I mentioned before that your system of attaching sprites with dx/dy instance variables and a dictionary was overly complex and error-prone. I understand you based it on R0J0hound's advice - he's a brilliant programmer, but he works in Construct 2, where hierarchies don't exist. In Construct 3, the hierarchy feature would be a much simpler and more efficient solution for your task. That said, you don't necessarily have to switch to it.

  • You can add a 1-2px offset with bbcode. But it's possible that some texts will become clipped on the right.

    Another option is to convert this font to spritefont and use spritefonts everywhere.

  • I strongly suggest starting using JSON instead of arrays. It will take a little time to learn, but will save you a lot of time and headache down the road!

    Consider this JSON, which stores all weapons in the game and their stats:

    {
     "IronSword": {
     "Type": "Melee",
     "Rarity": "Common",
     "Damage": 25,
     "Attack Speed": 1.2,
     "Crit Chance": "5%",
     "Range": 1.5,
     "Durability": 100,
     "Special Effect": "None"
     },
     "SteelAxe": {
     "Type": "Melee",
     "Rarity": "Uncommon",
     "Damage": 40,
     "Attack Speed": 0.9,
     "Crit Chance": "3%",
     "Range": 1.3,
     "Durability": 120,
     "Special Effect": "Cleave"
     },
     "HunterBow": {
     "Type": "Ranged",
     "Rarity": "Common",
     "Damage": 18,
     "Attack Speed": 1.5,
     "Crit Chance": "10%",
     "Range": 8.0,
     "Durability": 80,
     "Special Effect": "Quick Draw"
     },
     "Longbow": {
     "Type": "Ranged",
     "Rarity": "Rare",
     "Damage": 35,
     "Attack Speed": 1.1,
     "Crit Chance": "15%",
     "Range": 10.0,
     "Durability": 70,
     "Special Effect": "Armor Pierce"
     }
    }
    

    You can access any stat directly with a single expression, for example: WeaponJSON.Get("Longbow.Damage"). It's a lot easier than dealing with arrays!

    .

    Besides, JSON is flexible - you can create records and structures that are simply not possible with arrays:

    .

    And here is a more advanced trick - I often store the data as an array in a table format, which makes it easy to view and modify in the editor. But at runtime, I convert it to JSON. I've been using this method for the past few years with great success.

  • That's only a small part of the code. Did you implement all other steps? It feels like you don't fully understand the idea.

    Here is a demo - click any molek sprite to destroy it and break apart the remaining chain.

    dropbox.com/scl/fi/11l3w99yrnteao5t1atqn/MolekDemo.c3p

  • You don't have to use the family in all code. Think of it as an alias. It's useful when you need to pick two instances of the same object in one event - one by object's real name and another by its alias (family name).

    Otherwise you can use Molek or MolekFamily, it doesn't matter.

  • Maybe two sprites on a layer that only become visible where they overlap?

    Yes, put both sprites - the one you want to reveal and the mask - on a separate layer, enable own textures and set a blend mode on the mask. See the Blend Modes example in the editor, it demonstrates all modes.

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 279 followers

Connect with dop2000

Trophy Case

  • 10-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
  • x14
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

30/44
How to earn trophies