Add two variables - previousX and previousY.
On every tick check if Touch.X=previousX and Touch.Y=previousY. If not, this means that the finger has moved. After that save new touch position into these variables.
Try this:
If you have lots of waterfalls on your layout, add "Is on screen" condition to event #4.
Develop games in your browser. Powerful, performant & highly capable.
As far as I know, Save/Load system works independently from the Local Storage. When you save or load the game, the contents of Local Storage is not changed.
See this demo:
dropbox.com/s/6fmdstyyke9wa9g/TimeAwayL-2Timers.capx
You can start "Upgrade 2" timer, wait a few seconds, click save, close the window, open it again, click load - the timer will still continue running.
kriand, yep, I noticed the same.
"System compare variable a=1 OR Object compare instance variable b=1" doesn't work. Definitely a bug.
The format of MapAsJSON is probably incompatible with Array.AsJSON
You can output both into a text or browser log and compare.
For example, array JSON should look like this:
{"c2array":true,"size":[2],"data":["apple","banana"]}
Ashley admitted that there are issues with OR-blocks in Construct. You can test if your code is working if you break this event into two:
1. Platform speed>250 ... Set test to 1
2. Animation is playing ... Set test to 1
.
If two events work, but when you combine them into one OR-block, it stops working, then I suggest you make a small project replicating the problem and submit a bug report here:
github.com/Scirra/Construct-3-bugs/issues
Try posting your question in the plugin post, people who commented on it will get notifications and someone might help you:
construct.net/forum/extending-construct-2/work-in-progress-addons-30/plugin-spine-plugin-68156
In the "Image upload" box please add information that the uploaded image needs to be actually inserted into the message using the "img" tag.
Many people don't know that and I've seen too many posts saying "see the attached a screenshot" and of course there was nothing attached.
Your text file contains line breaks. When you use tokenat() with ";" separator, the next token includes line break from the previous line. So your "glow" key actually looks like this:
" glow"
You need to add trim() to your expression to remove all line breaks, spaces, tabs etc from the beginning and end of the string.
Or you can remove “;” and use line breaks to separate keys:
tokenat(tokenat(AJAX.LastData, loop, newline), 0, "|")
Something like this?
dropbox.com/s/6drs0fiqhkcdzag/TiledLine.capx
You need to upload your capx to some file sharing service like dropbox and post the link here.
To round to the nearest 0.01 use this formula:
set x to round(x*100)/100
Member since 26 May, 2016