I can't add anything to Alshey's answer. You saved JSON in one project, you can't use it to restore another object's state in a different project. Even if the name of both objects is the same, their internal IDs are different.
Can you post your project file together with the json data? I can't help you without it.
Ok, try this demo:
dropbox.com/s/8nie2jvl9brfzm7/Pathfinding_Stack2.c3p
Touch several points on the screen.
I admit I didn't thoroughly read that bug report. But did you see the release notes for new beta r215?
You can now make a snapshot of a portion of the screen. For example, the area with your 9-patch object, and then load this image into a sprite.
Develop games in your browser. Powerful, performant & highly capable.
There are several methods, the easiest would probably be using a pair of local variables:
On Z pressed Cursor is over Sprite (or some other condition which picks one sprite) ...Local variable w ...Local variable h ......Set w to Sprite.width ......Set h to Sprite.height ......Sprite Set size to (w/2,h/2) ......Create New Sprite ......Sprite Set size to (w/2,h/2)
This is odd, I don't see any mistakes in your screenshots, the code should work.
Does the text "LOADED JSON" appear? Check that your array is set as global.
If nothing helps, please post your project file.
Can you show the contents of PetalsData.json ?
I don't want someone's game or app.
I didn't mean that. I mean that it's a very bad idea - changing some random files after export and hoping that the apk will work.
Here is some apk, not sure how it will help you.
dropbox.com/s/6acuaygq4gtcrdr/NOtch-test.apk
I made a demo, check it out!
dropbox.com/s/u26xzsc37x38tzq/BBS_Text.c3p
Why can't you simply make a png with this image? Or do you want to display it as if the text is loading slowly, line by line (character by character)?
Edit: sorry, didn't see the first link. Still you can use a sprite with the whole image. And then reveal it gradually using a mask - tilemap with a blend mode.
Replacing files after export feels like hacking, I would not recommend doing it.
Member since 26 May, 2016