dop2000's Recent Forum Activity

  • It's hard to tell what's happening without seeing the entire project. The function on your screenshot should definitely create "score" key. If you previously parsed another data with "score_table", then the JSON should contain both keys:

    {"score_table":{"id":1,"position_x":"0","position_y":"0","boss_counter":"0"}, "score":{"id":1,"position_x":"0","position_y":"0","boss_counter":"0"}}

    If this doesn't happen, maybe the function doesn't work? Or another AJAX request immediately overwrites JSON with the old data from the server? I can only guess.

    Learn to use the debugger tool (Shift+F4). Temporarily disable the loading function and test that the saving function works - check the contents of JSON in the debugger.

  • lightning_ I respond when I know the answer and when I have time. If you need help fast, try Discord or VK group.

  • When I added variables to JSON as shown in the example you provided, the numbers all turned into 0.

    Additionally, username (String type) is not written in the JSON either.

    Where do you see this? Check in the debugger, I bet the values in JSON are all correct.

    Maybe your PHP script expects text values instead of numbers? In this case you need to use str(variable) to convert numbers to text.

    JSON set "keyname" to str(variable)

    Also in your first comment the parent key in JSON was "score", but now you say it's "score_table"

  • As I explained in your previous post, that data format is JSON, not an array.

    So you need to use JSON object.

  • the orbit behavior seems to override all other behaviors in terms of movement.

    You are right. You can get rid of Orbit behavior and move the object using other means.

    Say, you can attach it to another base sprite at a distance with Pin or hierarchy, and rotate that base sprite.

  • Platform objects hover slightly above the ground (half a pixel or so). That's probably why the tile is not detected correctly. Try adding a few pixels to PlayerHitbox.Y in the expression.

    PlayerHitbox.Y+2

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Local storage is used to save values between sessions. If you are just switching to another layout, you don't need Local Storage - simply store the values in global variables or in a dictionary.

    The reason your language resets is probably because you change it in "LocalStorage on any item get". So if you are reading other values from LS, like "Speed", it will overwrite the language value.

  • To be honest, it's difficult to understand your task. It would help if you could attach a picture or a demo project.

    You can run a value tween with "In Sinusoidal" ease and Ping-pong=yes settings. And add the value of this tween to the object's motion (speed or orbit angle).

    dropbox.com/scl/fi/unabdyo98ot8jac68hs5d/Orbit-Tween.c3p

  • Of course. You can use any character or your own custom tag, say "{line_break}"

    replace(Dialog_Greeting, "{line_break}", newline)

  • Perhaps you can assemble the object from sprites (rectangle, circle) and connect them together with physics joints.

  • Is layout big enough to scroll? Try enabling "unbounded scrolling" in layout properties.

dop2000's avatar

dop2000

Member since 26 May, 2016

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