dop2000's Recent Forum Activity

  • Then you need to show the code where the inventory screen is updated after picking up an item.

  • So you are storing "name,quantity" strings! Then ignore what I said about writing them to different cells.

    I don't see anything wrong on your screenshots.

    What is the problem again? The icon is not updated when you add an item to the inventory?

  • It must be a different issue. You need to share a new screenshot or your project file.

  • Loopindex expression only works with System loops. When using Array For Each Element loop, you need Array.CurValue, Array.CurX and Array.CurY expressions.

    Also, if your array is 2D, then you probably need to store item name and item quantity in separate cells. Your current code tries to write them into one cell as a string:

    "Axe,2"

    Stop Loop action also won't work with this loop. You will need another way to stop it, for example reset the item quantity.

    So the correct code should look like this:

    For Each X element
    Array.CurValue="Nothing"
    Item.quantity>0
     : Array set at (Self.CurX, 0) to Item.name
     : Array set at (Self.CurX, 1) to Item.quantity
     : Item set quantity to 0
     : Item destroy
  • You can try turning pixel rounding off, and round them manually with events.

    For example, when the character stops, set its position to round(self.x), round(self.y)

    Same for the camera - make sure its coordinates are always integer when it's not moving.

  • For example enemyA and enemyB would have the same health and damage

    Not necessarily. The way it's usually done is you add a repository layout where you put one instance of each object - it will be the default instance. Every new instance you create in the editor or in runtime will be copied from that default instance.

    So you can place all enemies and friendlies on that repository layout and configure different hp/damage values for them.

  • In Construct animations are image-based, each frame is a separate image.

    If you are looking for skeletal animation, you'll need to use Spriter or Spine addons:

    construct.net/en/forum/construct-3/general-discussion-7/spriter-c3-addon-8-16-2021-130240

    construct.net/en/forum/construct-3/general-discussion-7/spine-plugin-update-153892

  • Objects can be in multiple families. If there are any variables that apply to both enemies and friendlies - you can define them on AllEntities family, which contains all objects.

    You will be able to do damage to both with a single line of code:

    AllEntities subtract 1 from HP

    But these variables will not be available in Enemies and Friendlies families. So you can do this:

    Skeleton subtract 1 from HP

    But not this:

    Enemies subtract 1 from HP

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When the button is tapped, change its opacity.

    Button set opacity to 50

    Wait 5 seconds

    Button set opacity to 100

  • Ah, you are right. There should be an option to reset the tags or something. Did you try to re-create the objects?

    Tag field can contain multiple tags, separated by space. You can add the same tag to all solid objects and set solid filter to this tag (inclusive). Then repeat the exclusion filter for the tags you don't want to be solid.

  • In properties (on the left panel) -> Select mode -> All

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 255 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