dop2000's Forum Posts

  • "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.

  • 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
    
  • Without the rest of your project it's impossible to help you.

    Test with only 1 or 2 cards, run in debug mode, check all instances, variables and the contents of the dictionary. And you will probably figure it out.

  • I imagine if there were an issue with AJAX, it would've been reported a long time ago. Can you post a screenshot of your code?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can't put that directly in the text box. Use an action:

    TextBox Set text to "[outline=#ffffff]" & Dictionary.Get("key") & "[/outline]" & ...

  • Check InDeck variable of all cards in the debugger. Maybe it's 0 for some cards.

    As I mentioned before, referencing cards by UID in the dictionary is a bad idea. Their UIDs may change if you switch to another layout, or restart the layout.

  • Set the Fullscreen mode to Scale Outer in project properties.

    Set the scale of the background sprite to:

    max(ViewportWidth(layer)/Sprite.Width, ViewportHeight(layer)/Sprite.Height)

  • You can use the ternary operator:

    (BallNumberVar=1 ? Ball.AnimationName : Ball_2.AnimationName)=BallFamily.AnimationName