ClocksTNW's Recent Forum Activity

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

  • For clarification, if I could name a text variable "1" or "2" etc. and save text to it:

    Set Textbox = 1.Text

    Set Textbox = 2.Text

    Set Textbox = RandomInteger.Text

    Is there any way to set the current key in a dictionary to a random integer? So it generates "17" and it reads the 17th key of the dictionary?

  • Hey all,

    I want to generate a number between 1 and 20, and set a textbox to a value based on what number is generated.

    In a hypothetical pseudo code world, I would want:

    Integer= int(random(1,20))

    Set Text1 = Text.Integer

    I might not be going about this in the correct way. Is there any way I can put 20 values into the textbox as instance variables and count from 1 - 20?

    Thanks,

    -John

  • Quick somewhat related question! Why does Construkt 2 default on 640, 480? Also, if I am designing an application for iphone, android, and a website with Construkt, is there any conceivable quick way of resizing it, or do I have to manually change the resolution and positions of objects each time?

  • I had animation speed set to 0 - I finally figured out the problem... the "Touching object" event is broken - you need to couple it with "At any Touch end"

    Event:

    Touching Object

    Condition:

    At any touch end

    Action: x

    The animation frame math from Geometrix was on point as well.. thanks all

  • Thanks for your response Geometrix, it certainly simplifies the code. However, I am still having trouble... it still reacts the same way- unpredictably and broken. 50% of the time it works perfectly, the other 50% it just blinks 5 times and stays on the same frame.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey all,

    I'm having some trouble toggling an animation. The first time you click on something, I want it to go to frame 1. The second time, I would like it to go back to frame 0. The third, back to frame 1. This is the way I have it and its not correct.

    Touching - Object        - Wait 1 second

    Animation Frame = 0       - Set animation Frame to 1

    Else

    Touching - Object        - Wait 1 second

    Animation Frame = 1       - Set animation Frame to 0

    Unfortunately, the "else" does not stop the program from carrying out those actions. I will click the object once and it does not appear to animate.

ClocksTNW's avatar

ClocksTNW

Member since 20 Jun, 2013

None one is following ClocksTNW yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies