korbaach's Forum Posts

  • try this one.. BonusLives.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • try this one Scroll&Slide.capx

  • Sprite.AnimationFrameCount= the number of frames

    Sprite.AnimationFrame= current frame

    .let's say you have 10 frames..so Sprite.AnimationFrameCount=10..but last frame have index 9..

    so..if you want to set to last frame........Sprite.AnimationFrameCount-1=10-1=9

  • try this:

    animation speed=0

  • One more thing... really....

    Could I make it so that every time you click on the textbox, within it, it shows the date and time (so when you write down your mothly messages, you know what date and time it was when you wrote them)?

    of course... just use Browser.ExecJS("Date()")

    How do I separate the year from the day, month and time?

    gRAPhHBaR_FinAl.capx

  • try this one Array.capx

    OR

  • Would it be possible (because the bar is one object) to let the user click on each separate month bar, and leave a message in a textbox that appears?

    very possible..

    check this capx .......... gRAPhHBaR_6.capx

    I just added another boolean variable for bar sprite("myInput")

    ....and one more layer to ArrayData(12,11,2)...

    [quote:1o94i1ij]What line of code specifies how many pixels/big the bar will be when the number 1 is entered into the textbox

  • 1. the text linked to the bar is still offset (it keeps floating a bit to the right)

    the same problem as with bar sprite..click on text object and set

    [quote:rsarlnc9]2. when I slide my page/layout (I use a slide function in my app) to get to the chart, the year text in the list keeps shrinking.

    try this..click on list object..set

    [quote:rsarlnc9] Also, I was wondering, how can I put a space area between each bar...

    in example i use bar sprite (h=250px;w=22px)...so in code

    if you replace 22 with 30..you'll have a 8px space between each bar...

  • locohost I copy your Xml code in text file and this is the result

  • from what I can see from the picture..you probably did not put bar origin image point on bottom..

    If I'm wrong, please upload simple capx...

  • if you add something like this?

    If I understood correctly

    Each animation has 4 frames for each direction ...

    your animation looks like

    so..if frame is 0..Bullet angle =0*90=0;...frame 1=1*90=90;...frame 2=2*90=180;...frame 3=3*90=270

  • >On item "Settings" exists -- array load from JSON string "Settings" (to load the data)

    but it is not working...what i'm missing?

    On item "settings" get.....Array load from JSON string LocalStorage.ItemValue

    sliders.capx

  • What further change would be needed so that questions which are correctly answered are not asked again? I.e. only unanswered or incorrectly answered questions are able to be asked?

    Ok.

    so..now.. when you answer on question(correct or not,irrelevant)..that question does not appear in game again..

    do you know why?

    in example..event 4..function "RandomizeQuestionOrder"...have 2 loops

    so..after second loop,"ArrayQuestionOrder" looks similar to this(4,9,2,10,5,1,7,6,8,3)

    (first question is no4,then no9..etc)

    then.. in second function

    after you set question....action- delete inex 0 from ArrayQuestionOrder..delete that question

    (first question is no4,then no9..etc)

    so..you always ask question on index 0..ask-delete..ask again ..but now the question

    that was the second(index 1), is first(on index 0)...

    to prevent this..just move action in

    now..only if answer is correct you will delete that question...

    but..what will happen if the answer is incorrect..nothing.

    .you would be constantly asked the same question,until you answer correctly..

    so you need ..if answer is incorrect

    you push that question on end of the line