korbaach's Recent Forum Activity

  • Ok..understand..

    Is it then possible to somehow...fill flood offset 1 px ?

  • Maybe you can use flood fill & Canvas plugin

    so..this is a DRAWING APP WITH HTML5 CANVAS(click on tools-bucket)

    and this is my result with Canvas plugin

    why is such a difference in the result?

    i know pic is not perfect

    but is the same duck and app also use flood fill algorithm

    ok.here is a small work around with 2 frames...

    floodFillCanvas.capx

  • When the Police Car reaches it's destination, it parks, then construct 2 will spawn 2 police officers [/code:2jnh4rwf]
    just a thought.. 
    add 2 new instance variable for PoliceOfficer startX & startY
    PoliceOfficer on created set startX=PoliceOfficer.X;startY=PoliceOfficer.Y
    then you can use
    On "FindPathToPoliceCar"--find path to( PoliceOfficer.startX, PoliceOfficer.startY)
    
    [img="https://media.giphy.com/media/xTiTnBccTI3bo7cCS4/giphy.gif"]
    
    [url=https://app.box.com/s/73aor93gdgjv89qu5wt37myppv6lj0yd]Example.capx[/url]
  • |=or...&=and

    second value....0=False;...1=True

  • I need to have a different image loading on each instance.

    I tried doing this by using the UID but it just changes the lot of them to the next image rather than giving me the sprite requested for the separate sprites.

    The only way to do that... is to use diffrent frames

  • I have 3 sprites, all on the same layer. I am trying to achieve this :

    But after many different blend combos, and playing with Z order, I just can't get that. I get something like this :

    4Sprites2Layers.capx

  • if you have image "1.png"

    or

    "something"&PNG&".png" .........something1.png

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • ok..try diffrent way..rename sounds..

    а->frame with picture of "a" .(ogg&m4a)

    б->frame with picture of "б"

    .

    .

    ..so if "д" is on frame 20..rename sound д to 20(ogg&m4a)

    then you can use Audio play str(SpriteText.AnimationFrame)

  • If right arrow button is pressed = character animation to "walking".

    If right arrow button is pressed - animation "walking" starts over and over from the beginning(frame 0)

    try: On Key pressed..

  • ... i want the game to ask you a question based off of a dictionary (The key is the answer and the value is the statement or question). How can I get it to pick a random key in a dictionary to make this work...?

    ..

    Try this input .. a variable and use..Choose(1,2,3,4)

    and then you have several condition such as IF variable value at say 3 then use the action to pull that dictionary value.

    I prefer to code a random variable number generator and then putting a condition for each value.

    and..if you have 1000 question...you'll have 1000 conditions....

    you want to use Dictionary ..you need to write keys and values differently...

    keys should look like :"1Question";"2Question"...."1000Question"...

    then if you have variable"Rnd"=5or27or333 ..you can get Rnd&"Question" key

    Second...you need to put your Question&Answer in Value..Use Separator between them...

    (i use # in example)

    then use tokenat to pull out Question&Answer...

    ..and finally..if you don't want to repeat questions..use Array for random values...

    RndDictionary.capx

  • ..if you use just one "testBtn" Sprite object (5 frames&animation speed 0)..

    you can compare frame and QuizAnswer variable...

    Random5.capx

korbaach's avatar

korbaach

Member since 9 Sep, 2014

Twitter
korbaach has 3 followers

Trophy Case

  • 10-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

12/44
How to earn trophies