dop2000's Recent Forum Activity

  • What behavior are you using?

    Also, what does this mean - "Player keeps his 20"?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Try this:

    runtime.callFunction("MyFunction"+localVars.n);

    or with a global variable:

    runtime.callFunction("MyFunction"+runtime.globalVars.n);

  • My demo is for construct 2, maybe that's why you don't see these options. Try saving it as Construct 3 project and make sure you have selected Runtime=Construct 3 in project settings, in Advanced tab.

  • Text input may be ok for prototyping, but I would suggest using text or spritefont for the real game. You can create a new text object for each message and pin them to a large panel for scrolling. Check out this demo.

  • This happens to me all the time. I still regularly discover that something in construct works differently from how I imagined it :)

  • Edited: this is based on the function method of action... if you remember in Construct in order to have events/action act like function calls we have to do a wait 0 so next set of actions wait for above to complete then fire up ... but in functions... that wait 0 happens by default.. this will cause the other 2 functions to have time to re-evaluate the conditions that fired them in 1st place. (this is main reason i don't use functions... )

    I'm sorry, but I don't think what you are saying is correct.

    In any event actions and sub-events are executed from top to bottom. Functions are no different. They don't add any "wait 0" to the execution order. (unless you are using asynchronous functions and specifically wait for them to complete)

    And any conditions are evaluated only once, except when in loops.

  • No, I don't think this could happen in C2 either. One possible scenario when the first function could stop the other two from running is if it deactivated the group with those two functions. Or if the same conditions are checked again inside the two functions.

  • Saving to local storage is definitely easier with a dictionary. How you use the values after loading is up to you. You can copy some values that you need often to global variables (for example, gold amount). Values like game settings you can leave in the dictionary.

  • this sounds like when the drag and drop conditions happen, the 1st function call will disable one of the conditions and the other 2 remaining in the action list will not trigger.

    I may have misunderstood you, but if you are talking about the screenshot in the first post, there is no way the first function can disable the remaining two. All conditions are evaluated first, and if they are all true, then all actions will be executed. So all 3 functions will run one after another, without any pauses. Even if one of the functions changes the variables used in conditions, it won't matter, because they have already been evaluated.

  • Had the same problem today, ended up changing target sdk to 29. It works for now, but I'm guessing Google Play will soon stop accepting this version, so I'll need a proper solution.

  • but oddly, when I remove the additional conditions and just have it execute On Drop - it all works.

    This likely means that one of these conditions is false when "On drop" happens. You can disable one condition at a time and find which one causes the problem. Then investigate why it can be false.

  • Just like real joints in human body, they don't like to be overstressed. Make sure you don't apply too much force. And you should only change position and angle using Physics actions. If you try to change position or angle directly (using "Set angle" for example), or use other behaviors like Bullet, the joints will break.

    If this doesn't help, please post your project file.

dop2000's avatar

dop2000

Member since 26 May, 2016

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