dop2000's Recent Forum Activity

  • Maybe ProUI calls some method which is bugged in the latest NWJS, because this doesn't happen with other plugins and addons. Hopefully they will fix it soon.

  • You are definitely taking the right approach. But for this task I would probably recommend using JSON object. It will be easier to work with and you won't have to search the entire array when you need any bit of data.

    Here is a possible format:

    {
    "Fireball": {"mp": 5, "power": 2, "element": "fire", "type": "basic"},
    
    "Stalagmite": {"mp": 30, "power": 10, "element": "earth", "type": "attack"}
    }
    

    If you need to get the power value for the fireball for example, you can use this expression:

    JSON.Get("Fireball.power")

  • Sounds like a memory leak. Can you see Chrome memory usage increasing in Task Manager?

    Another possibility is that some object is constantly getting spawned. You can check this in debug view.

  • I had this issue for a long time, but it doesn't happen anymore in the latest versions of Chrome.

    Try updating Chrome and check out some suggestions from this post:

    construct.net/en/forum/construct-3/general-discussion-7/anyone-seeing-slower-167843

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Should be pretty straightforward:

    + System: Every tick
    -> Player: Set Custom angle of motion to TStick.a
    -> Player: Set Custom Overall speed to TStick.d×4
    

    You can multiply TStick.d by a bigger number to go faster.

  • I've explained in as much details as I could.

    If you want, you can post your project file, mark the events you need help with and I'll tell you how to change them.

  • I suggest you study a few tutorials about arrays and expressions to get a better understanding of your own code.

    Also, refer to the official documentation.

    construct.net/en/make-games/manuals/construct-3/system-reference/system-expressions

    As you can see in the manual, chooseindex expression has nothing to do with arrays:

    You can get rid of chooseindex, it's not needed in your case.

    chooseindex(Chatposition,Dialuge_System.At(1,1),Dialuge_System.At(1,2),Dialuge_System.At(1,3))

    is the same as this:

    Dialuge_System.At(1,Chatposition+1)

    To make the code easier to read, you can save the result of that expression to a variable, let's call it res. It's up to you if you make it global or local.

    Set res to Dialuge_System.At(1,Chatposition+1)

    Then you can split the result into sentences using tokenat and tokencount expressions. Again, see the documentation about how to use them. For example, tokencount(res, "_") will return the total number of sentences. And tokenat(res, 2, "_") will return the third sentence from the res string.

    DialogueText Set Text to tokenat(res, sentenceNumber, "_")

  • Yeah, I have the same error.

    In my case it was ProUI addon that was causing it. When I remove the addon, the game works.

  • If you have developed an UI already, you can change it to work with a family of dictionaries. (add all your dictionaries to a family)

    Another option is to use JSON object instead of dictionaries. It's pretty similar, but more flexible. And you can edit it in Debug View.

  • Try pressing F12 when you see the black screen, and check error messages in the console.

  • Ok, then see my fist comment. Wrap your expression in tokenat()

    Set text to tokenat(chooseindex(Chatposition,Dialuge_System.At(1,1),Dialuge_System.At(1,2),Dialuge_System.At(1,3)), sentenceNumber, "_")

    or the same but simpler:

    tokenat(Dialuge_System.At(1,Chatposition+1), sentenceNumber, "_")

    .

    On every key press increase sentenceNumber, from 0 to tokencount(Dialuge_System.At(1,Chatposition+1), "_")-1

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