ClocksTNW's Forum Posts

  • bump

  • Hey all,

    I read the HTML code for pre-dialing a number on iOS or Android devices was something like "<a href='tel:123-555-1212'>Dial Me</a>."

    I don't know if this is true, but regardless, I'm having difficulty finding a plug-in where I can add a line of HTML code.

    If that's not correct, can I use a line of java instead? like "tel: xxx-xxx-xxxx?" Is there a way to do this with the browser object? I tried using it and couldn't get it to work. First time attempting anything like this.

    Thanks,

    -John

  • Hey everyone,

    I'm John, just found out about the introduction thread. So far using Construct 2 has been an amazing experience. I'm very grateful to have active developers along with a supportful community. Like everyone, I'm guilty of occasionally thinking there's a glitch in C2 when its something I did wrong or didn't understand.

    Anyway... Cheers!

  • 1) Here's a .capx showing that it does in fact work without needing a resize action: https://dl.dropboxusercontent.com/u/15217362/arrayworks.capx

    I think you might have been confused by the fact the array object defaults to 10x1x1, and since indices are zero-based, the element at 8,1,1 is outside the array. It works fine with 10x10x10 though, as the .capx proves.

    You're right.

  • Well, I suppose I know that keys can do things, I just don't understand why you wouldn't use arrays. Thanks for the responses though. I do actually really like construct 2

  • Hey everyone,

    Well, its been a long two or three weeks of Construct 2 usage, and I'd like to save new users hours and hours of time that I wasted figuring things out that should be made very obvious in the tutorials.

    1. If you're using arrays and its returning 0 and you're positive you set up the array size correctly and you're positive you used the "set value" technique correctly,you have to reset the size in the trigger/action section before you add any new values. Seriously, even if you run your program with an array defaulted at 10, 10, 10 and try to add "8,1,1" it will not work without a resize "10,10,10" before it. I'm not kidding...

    2. BUTTONS DON'T SHOW UP IN MOBILE APPLICATIONS!?!? you have to use your own custom sprites, as far as I can tell. Don't even bother with buttons, they're hardly customizable anyway.

    3. If you're adding a key to a dictionary, that's totally different than adding an instance variable. To my knowledge keys serve no purpose.

    4. CocoonJS errors can be accessed by clicking on the FPS button in the top left corner. YOU SHOULD BE EXPORTING TO COCOONJS EVERYDAY because it likes to crash when loading certain images, and playing guess and check after 2 weeks is a huge pain and often project-crippling experience.

  • Hi all,

    I see a black screen for 2 or 3 seconds and then CocoonJS crashes. When I go to the error section it says something about "Loading-logo.png"

    Eventually, through trial and error, I found at least one of the images causing the issue - a short animation of .PNG files. How can I solve this issue? Also, is this simply CocoonJS crashing, or will my .apk crash as well?

    Thanks!

    -John

  • Hi all,

    I have four quiz question banks in 1 array, distinguished by the X dimension. The Y dimension is the question in the quiz, and the Z dimension contains the answers.

    For example, 1, 1, 1 = Question 1 of Quiz one.

    1, 1, 2 = Potential answer of Quiz 1, Question 1.

    1, 2, 1 = Quiz 1 Question 2.

    Basically, I want to count the number of questions in a quiz. I'm trying to figure out how to count the number of UNIQUE instances in an array, so I can determine the total number of questions. So, instead of 1, 1, 1 and 1, 1, 2 equaling 2, I want it to equal 1.

    Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • How can i randomize the questions on Yanns version?

    Hey man, I found the answer to your question... you create an array with an inverted sub-event for "contains" AKA "Does not contain this number" before randomizing again. Here:

    scirra.com/tutorials/315/generating-random-numbers-without-duplicates

  • dude... thank you so much...

  • Hi,

    I know there's a section for this, but I'm not sure if this is a bug or something I'm doing wrong. I followed the tutorial and have been trying to get this to work for like 3 hours. Somebody for the love of christ please help me. Basically, I can't retrieve the value from a dictionary key.

    Thanks

    Makesnosense

  • http://rapidshare.com/files/3924054858/makes%20no%20sense.capx

    Literally cannot imagine what I'm doing wrong

  • Okay. I have instance variables Q1, Q2, Q3 with text saved...

    Dictionary.Get("Q1") returns "0"

    This program is seriously bugged. I'm not joking.

  • okay, so I figured out what was wrong. My text variables are set as Q1, Q2, Q3, Q4, etc. I had

    int(random(1,20)

    Add "Q" & str(Dictionary.RandomNumber)to "Text"

    that generated 1, 2, 3, 4, 5! The "Q" wasn't even being added on! So I literally wrote

    Dictionary.setvalue "Q" and that did not work either. I have no idea why.

    So finally I set the default value to the text as Q and just added to that. Wow. Thanks for the help Ramones

  • Okay, sorry if my question wasn't clear.

    A user touches a sprite. I want text from a textbank of 1 - 20 to appear. I have a dictionary with 20 text entries in it. How can I randomly select a line of text from the dictionary?