Wow, thanks dop2000, really appreciate your help. Didn't realize it'd be so complicated. Construct 2 should have a default built in behavior for this, I would think it's a common need.
Thanks, DOP, that worked.
I'm trying to allow for both a single touch(decrease/increase by one) and a touch and hold down(keep decreasing/increasing until release).
I've tried switching which event comes first but still I only get continuous to work.) Also, I want the continuous to not go so quick and tried inserting a wait, but that didn't do anything do the speed of decrease.
(I only allowed the continuous in the 'highest number' decrease button right now)
Project file: dropbox.com/scl/fo/cy51z2wfm02l22f2o732g/AKByB6kE3pdWw1PIfU7FeF0
Screenshot of code extract: dropbox.com/scl/fi/vmh4eurwozgy1nhoac92c/continousProblem.png
Thanks.
The link above should be fine.
Thanks for any help in advance
Thanks for the heads up Dop2000
dropbox.com/s/zan65s5odfe1ztm/additionGame.capx
Edited my program a bit, what was working before isn't working now.
Whenever I click 'play again' the timer stays at 0. It worked fine before I made my new changes.
Any ideas? Thanks.
dropbox.com/s/zan65s5odfe1z ... .capx?dl=0
Thanks, dop2000. That did the trick!
I've created a kids addition game (modified from a tutorial) and I can't seem to get it to 'play again'. It will default all the elements to their 'design' values.
Any ideas to steer me to the correct way of making it work? I know it must be something simple, but I can't figure it out
OK, thanks. Isn't the 'iterate thru each score' just a 'descriptive' comment? isn't that good to have in a program?
I fixed the other things you said. Thanks.
That's not how you would do a for loop in C2. You would leave the name blank and use 'loopindex' as the index, avoiding 'i' completely. Or name the index 'i' and use loopindex("i") as the index.
Thanks. I played with it a bit and made it better according to your advice:
snipboard.io/FKwQvV.jpg
What do you think?
I made it more abstract(can do with an array of any width) and I debugged and got the same results.
Develop games in your browser. Powerful, performant & highly capable.
Thanks for the help. Sorry about my reply as well, the Internet can make it easy to misconstrue communication. I have edited the post.
Thanks for the correction. Moving it as you indicated fixed the problem.
Fixed Code:
snipboard.io/e1b9Sc.jpg
Debug showing all okay:
snipboard.io/3aw4Xo.jpg
I'm following a tutorial on arrays, but it's not working. My code is EXACTLY what is in the tutorial, but I'm getting weird numbers in my array(should just add 1 to current value, e.g. 1,11,21, and so on).
See the screenshots below. The tutorial is at youtube.com/watch
Code:
snipboard.io/KNXxWD.jpg
Debug:
snipboard.io/6ey9ad.jpg