dop2000's Recent Forum Activity

  • Looks like some comments for the past hour or so disappeared..

    Try this file:

    dropbox.com/s/up42tkyv7r3oumn/IDPractice-share2.capx

    There are lots of problems with the code, I fixed the most obvious few.

  • Congratulations on migrating to new forums!

    Could you please add "View my posts" link? I used it every day to keep track of my topics and answers. Can't imaging using this forum without it.

    EDIT: many old posts are now completely unreadable. For example, the FAQ:

    construct.net/forum/construct-2/how-do-i-18/-how-do-i-frequently-asked-que-41236

  • Have you tried "Line of sight"?

    In C2 select New Project and search for "Line of sight" in the list of templates.

  • Simply add another condition to your "Button on click" event: "Button is visible"

  • You do not have permission to view this post

  • Use Timer behavior.

    Or you can create an instance variable TimeLastHurt and do this:

  • So to my understanding, I should continue reducing them in layout to keep that sharp look for both small and large screens?

    Yes, if you don't mind using more memory.

    Also, some images (pixel-perfect, vector graphics) may visibly lose in quality when resized in C2.

    Returning to my example from the previous comment - on 1080p screen the second image with 250x250 original resolution may look slightly better, than the 500x500 image scaled down to 50%.

  • I think this is true if you want your images to look better on a higher resolution screen.

    For example, let's say you make your game for 1080p screen and put two identical images on the layout - one is 500x500px resized down to 250x250px (resized on layout), another 250x250px (real image size).

    On a 1080p screen both images will look the same.

    On a 4K screen the first image will look slightly sharper than the second.

    But it will also use much more memory.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think the best practice is to target one screen resolution (high enough, but not crazy high) and prepare all images for this resolution.

    So you export images in the correct size from some external program, import to C2 and use them without resizing.

    When you scale down images in Sprite Editor, you reduce their quality.

    When you scale down images on the layout, you also reduce their quality and wasting video memory.

  • Also, you should post this in "How do I.." section of Construct 2 forum.

  • You have all the correct events, but they are in wrong places.

    First event should have two conditions:

    Crate HP<=0 : Crate start animation "Break"

    Trigger once

    Second event should also be top-level (not a sub-event):

    Crate on animation "Break" finished : Start fade

    However, this code may not work correctly if you have multiple instances of Crate object, because "Trigger once" doesn't work per instance. As long as one crate has HP<0, this event will not get triggered for other crates.

    So I suggest you change your code to this:

    Crate HP<=0                                : Crate start animation "Break"
    Crate animation "Break" NOT playing
    
    Crate on animation "Break" finished        : Start fade
    [/code:1rihlvf3]
  • Are you sure your array contains any data when this function is executed?

    I suggest running your game in Debug Mode (Ctrl-F4) and check everything.

    If you still unable to solve this, please share your capx.

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