dop2000's Recent Forum Activity

  • The dictionary is empty by default. If it contains any values, this means you have a code in the project that puts these values in it, or maybe loads them from a file.

    You can of course modify the values in the dictionary using actions Set Key or Add Key.

  • You probably using it wrong. Please post a screenshot of your events.

    "In-memory only" option doesn't save your data when the game is closed!

  • Another option is to use Timer behavior on some other object (say, the table sprite). For example, you start tweens for ten different cards, with 0.2s intervals, and each tween takes 0.5s to finish. Start a timer for 0.6s with every tween. The timer will be restarted for every card until the last one. "On timer" event will be triggered once 0.1s after the last tween has finished.

  • "Mouse: Cursor is over object" event will pick the object instance. Make sure to configure the collision polygon correctly.

  • What is a "matriz"? Do you save to Local Storage? Please post a screenshot of the events where you save/load data.

  • You can't expect someone to create this mechanic for you. You need to explain what you have tried and what didn't work.

  • Haha, yeah, I still forget about this sometimes and instinctively wrap string variables in quotation marks. Sometimes I wish C3 was stricter about this, more like traditional programming languages.

    On the other hand, this lets you store entire JSON strings in variables without needing to escape every quotation mark.

    For example:

    Text variable myJSON = {"name":"John", "age":30, "car":0}

    Instead of:

    Text variable myJSON = "{"""name""":"""John", """age""":30, """car""":0}"

  • FileChooser On Changed: Sprite Load image from FileChooser.FileURLAt(0)

  • Did you put the string "Testing" with quotation marks in the variable definition? Remove them.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Say, you want to spawn the tracks every 10px, then use this condition:

    Every (10/Tank.speed) seconds

  • Here is the formula:

    Set volume to log10(speed/maxSpeed)*20

  • Answering your original question, here's how you can read text files with NWjs:

    Set var to NWJS.ReadFile("path")

    Another option that should work on any platform is with the FileChooser:

    | Global string s‎ = 
    + FileChooser: On changed
    -> AJAX: Request FileChooser.FileURLAt(0) (tag "tag")
    -> System: Wait for previous actions to complete
    -> System: Set s to AJAX.LastData
    
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