dop2000's Recent Forum Activity

  • This can be done a bit easier. Check out these two demo projects:

    howtoconstructdemos.com/spawn-objects-randomly-without-overlapping-2-capx

  • You mean Who&What? If Who="Kids" and What="Dancing", then when you concatenate these two variables you get Who&What="KidsDancing"

  • Sine behavior should do it.

  • You mean on the circle line?

    Set a = random(360)

    X = center.X + 100 * cos (a)

    Y = center.Y + 100 * sin (a)

  • To distribute existing sprites on a line, you can use "For each sprite" loop, and the same lerp expression.

    Or you can even do this without a loop:

    Sprite set position to X=lerp(A_x, B_x, self.IID/(Sprite.count-1), Y=lerp(A_y, B_y, self.IID/(Sprite.count-1))

  • Let's say you want to create 10 instances, the first instance should be at point A, and the last instance at point B:

    Repeat 10 times
    Create object at X=lerp(A_x, B_x, loopindex/9), Y=lerp(A_y, B_y, loopindex/9)
    

    If all 10 instances need to fit between points A and B:

    For "n"=1 to 10
    Create object at X=lerp(A_x, B_x, loopindex/11), Y=lerp(A_y, B_y, loopindex/11)
    
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Fixed your project, made it much simpler:

    dropbox.com/s/9l5bs8e8vbguwzr/MakeASentence2.c3p

  • Sorry for assuming that you are a beginner, but some things you've described and especially your troubleshooting methods (re-arranging events, adding waits etc.) are mistakes that I've seen many times on this forum.

    For example, adding 1 to a global variable when any enemy is attacking, and subtracting 1 at the end of their attack animation - with multiple enemies this is difficult to program correctly, and extremely difficult to debug when it's not working.

    It's much easier to set isUnderAttack=true when an enemy starts its attack, and then when an attack ends (or on every tick, or every 0.1s) check if there are any enemies still attacking. If not, set isUnderAttack=false.

    Using "Wait" in this logic will only cause problems! If you need to delay something, for example, player recovering from the attack, use Timer behavior.

    .

    About your other issue with the startup sequence - when you are starting many asynchronous requests at once, and then use many "On completed" events, it's difficult to figure out when all of them are completed. It's easier to execute them one by one.

    Unless the files are really big, these requests should be finished in a couple of ticks.

    .

    Can you please post screenshots of your code, which you are struggling with? It will be much easier to discuss with actual examples.

  • For the console log to show anything, you need to add "Browser Log" actions to your events :)

  • These two objects (healthbar and its background) have different Z-elevation, that's why they are drifting.

  • I'm guessing you can run any CMD command via "start", for example "start dir"

  • In runtime you can move data from one array to another, by copying from cell to cell - "Array2 Set value at (X,Y) to Array1.at(X,Y)". Do this in a loop, if you need to copy the entire row or column.

    But it is not possible to modify JSON files in the project, so you will not be able to save modified arrays in the same JSON files. You can write them to Local Storage or some cloud storage.

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