hoanganh17's Forum Posts

  • Assuming sprite.index is an instance variable you defined yourself, you can do sprite.index=tokenat(..). Its compare instance variable in sprite conditions. If you use uids in your global list, you can do pick by unique id.

    No...it doesn't work..

    Like that..??<img src="http://dautruong.vn/avatar/3Key%20Err.png" border="0" />

    my capx here:

    dropbox.com/s/kesery3omcea9gv/4In4.capx

    Everyone help me please..!!

  • Dear vee41

    How do I pick sprite.index..??

    I just only know pick top/bottom or pick by unique ID only...

    Thank to much...

  • My code can be explained like that

    Global list = "1,2,4,6";

    for(count= 0 to tokencount(list,","),count++){

       foreach(sprite in game){

          if(sprite.index==tokenat(list,loopindex,",")){

            sprite.destroy();

          }

       }

    }

    My expectation is at least some of sprites must be destroyed. Actually nothing.

    Could some one let me know why.

    Thank to much in advance..

  • Dear all.

    This problem never come to me with r95. But after upgrade to R114, it comes to me...:(

    CC2 seem not to works in double for-loop..:(

    How do I solve it

    My sample here: dropbox.com/s/kesery3omcea9gv/4In4.capx

    Thank a lot for all friends and experts

  • Thank all of you

    just concern about performance of game in case using 'For Each Ordered - by Y position - Move to top of layer.

    It's mean my game redraw object every tick..??? and could it let my game is getting slow...??

  • I want to make some of 2.5D game like:

    browserquest.mozilla.org

    But actually some techniques I don't know how to do:

    For example: Let player walk around a tree..In case Player.Y< tree.Y then tree overlap player but if Player.Y>tree.y then player overlap.

    Could CC2 does it..??

  • so sorry...I saw the search box...:)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Exactly Paradox...In case you have more than 400 event..How do you find and fix errors in your game...:(

    I need search box

  • Dear all

    There are any way let me capture screenshot and post it in FaceBook automatically..?

    It's mean that I need it is native feature in my Game, not outside software..

    Tell me any way...Plugin...JavaScript...etc

    Thank you very much

  • I think it is powerful if CC2 have feature allow me search Action, Expression and Condition.

    I so really tired (check and find and fix error in long event sheet)..:(

  • Joannesalfa

    Thank...I got it...same with behaviors or plugins

  • Joannesalfa

    Thank, but how do I install this effect in C2...I never do it before...

  • No. I don't want to make image 2 times one for focus and one for other. Because in case my automation have hundreds of images, it make the loading get slowly..:).

    I think there are way to outline sprite..like css3 without duplicate images.

    Have you got solution...???

  • In flash game, I saw each object have it's outline once clicked or focuses.

    How do I make same affect in C2 for sprite...???

    Best regards

  • Thank you Ashley

    In case of "Access-Control-Allow-Origin" existed..function load Image from URL is working well.

    You are my captain

    Best regards