dop2000's Recent Forum Activity

  • You are using Wait action inside of "Every 0.2s" event. If the wait time is longer than 0.2s, then the whole thing will quickly become a mess. The event will continue running and creating more and more delayed threads. Which probably explains why the movement is broken.

    Also, that code won't work with multiple enemies, because distance() expression will only check the first enemy instance.

    I suggest you use a state machine approach with Timer behavior instead of "waits" and "every X seconds".

    Use LOS behavior instead of distance, or add "For each enemy" loop if there are more than one enemy instance.

  • If you simply add "playerInputIsOn=true" condition to "On drag start" event, it won't stop the dragging if the input is false. The event will simply not run.

    You need to use "Drop" action:

    Sprite On drag start
    playerInputIsOn=false : Sprite Drop
    
  • If you are posting a big project you need to explain which layout to look at, where are the relevant events and how to reproduce the issue.

  • If you are controlling the character with keyboard keys, then 8direction will be the best choice. Otherwise you can use MoveTo or Pathfinding (if there are obstacles and units should walk around them).

    Check out this example:

    editor.construct.net

    All these behaviors have MovingAngle expression, which you can use to set the correct animation. See these tutorials:

    construct.net/en/tutorials/animation-management-8-712

    construct.net/en/tutorials/direction-based-sprite-251

  • If "StorageLoad2" function loads data from Local Storage, then you should wait for it to finish. LS operations are asynchronous, which means that they take some time to finish, while the rest of your code keeps running. So yeah, that's why your "array is empty" check was not working.

  • Where do you have that "is empty" check? It should be performed AFTER the array is loaded from AJAX or Local Storage.

    I'm guessing the check is done before the data is loaded from LS.

    You need to change how you load the data. I assume you want to try loading from LS first, and if LS data doesn't exist, then load the default data from the project file.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Add Solid behavior, disable it by default. On start of the layout enable Solid for sprites with the red bar (comparing by animation name or frame number).

  • Most keyboards should support 3-4 simultaneously pressed keys. Especially typical keys used in gaming, like WASD, space and arrow keys. Try that link first, maybe the problem is not with your keyboard.

  • It works for me.

    Your keyboard may not support certain key combinations. See this link:

    microsoft.com/applied-sciences/projects/anti-ghosting-demo

  • What do you mean by list?

    List object? Then yes, it's a pretty bad solution. How do you store item quantity?

    Or do you mean a list in a text variable? Like "sword:2, potion:3" ?

    I strongly suggest using a dictionary or array instead.

  • Have you tried Blend modes, as I suggested in your previous post?

    If you have and it didn't work for reason, you need to post your project file.

  • I would suggest using Timer behavior. You can run a timer for each balloon, for example:

    On Tap Balloon : Balloon start "reinflate" Timer for random(3,5) seconds
    
    Balloon On "Reinflate" timer : Start "reinflate" animation
    
dop2000's avatar

dop2000

Member since 26 May, 2016

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