dop2000's Recent Forum Activity

  • You can download the project from the video and compare it with your code.

  • Ok, seems like your task is pretty specific and you've found a good working solution for it. I've never had to program such complex buttons :) It's usually really straightforward - play an animation when touched, reset to default when released.

  • So, to clarify - as long as you keep the number of lasers on the screen below 5, you can fire a new laser at any time without any delay. But when there are 5 lasers, the gun becomes unavailable for 2 seconds. Is this correct?

    First, you can use PlayerBullet.count expression instead of BulletsOnScreen variable - this way you don't have to worry about updating this variable when a laser is created of destroyed.

    You can also use "Timer "Bullets" is running" condition instead of CanShoot variable.

    There is a mistake in your second event - "BulletsOnScreen>4" condition runs on every tick while it's true, so the timer is restarted again and again.

    I suggest you create a sub-event inside the event where the bullet is spawned. In that sub-event check if the PlayerBullet.count>4, and start the timer.

  • If I understood your task correctly, you can do this:

    If you have many button objects following the same logic, you can add them to a family and reuse these three events for the entire family.

  • I downloaded the project from the video description and it doesn't have that problem you are having. So you must have done something wrong, it's impossible to say what exactly from your screenshot.

  • I don't get it why you need all that complex code. "On Tap" event is specifically designed for buttons and it checks that the finger has not moved away from the initial location.

    Another alternative is to add a second condition to the "On Touch End" event - "Touch is touching Button".

  • There's likely a mistake in your code. Please post your project file or a screenshot of events.

    You can also check a few examples here:

    howtoconstructdemos.com/category/virtual-joystick

  • Cleaning just browser cache is not going to do it, I believe you need to clean all website data, including hosted app data.

    If it doesn't help, try a different browser, or opening C3 in a private tab.

  • Those are expressions. Every object in Construct has a bunch of expressions, I suggest checking them out, they are super useful.

    You can use "System Compare Two Values" condition for example. The first value being Player.BBoxBottom, and the second value Building.BBoxBottom

    Edit: actually in this case it's better to use "System Pick by evaluate" condition. First you pick all buildings which are overlapping the player, then pick buildings among them which have BBoxBottom>=Player.BBoxBottom

    ----+ Player: Is overlapping Building
    ----+ System Pick Building By evaluate (Building.BBoxBottom>=Player.BBoxBottom)
    -----> Building: Set opacity to 20
    
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you very much for the example. So depth translates to the different pages?

    It's up to you how you organize your data in table format. Pages may represent a parent object in JSON. (shops in my example above) I also often try to split big arrays into multiple pages, simply because it's easier to read and edit than one huge wall of numbers.

    And of course not all JSONs can be done this way, I have a few plain-text JSON files in my project as well.

  • We're you able to see my other reply to you?

    Looks like I missed it.

    I'd like the transparency to happen when the player is about a quarter or so up the buildings length so it looks the the building is grounded on the floor.

    You can add additional conditions to the "Is overlapping" checks. For example, check that Player.BBoxBottom<=Building.BBoxBottom

    You can also pin an invisible sprite to each building with a slightly smaller collision mask than the building. And check for overlapping with that sprite.

  • Press F12 and check the console log - it should tell you exactly why the project can't be opened.

dop2000's avatar

dop2000

Member since 26 May, 2016

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