dop2000's Forum Posts

  • 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

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • Use a sprite with ScollTo behavior. Or add this event:

    On every tick: System Scroll to

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Is the background in the canvas transparent? If it is, then you can use this script. If the background is white (opaque), you need to erase the background first, or perhaps modify the script.

  • Dan Blast I see your text contains lots of "^" characters. Do you want to replace them with line breaks? That's what I usually do in my projects:

    MyText Set text to replace(Dialog_Greeting, "^", newline)

    Or you can re-write the contents of the variable:

    Set Dialog_Greeting to replace(Dialog_Greeting, "^", newline)