dop2000's Forum Posts

  • Your link to CAPX file is wrong.

    What devices are you using in your video - android or iOS?

  • If your question is about reading/parsing of the CSV file, Rex has several plugins for that:

    construct.net/forum/extending-construct-2/addons-29/plugin-csv-csv2array-csv2dicti-41868

    You can load CVS into an array, or you can use CSV plugin expressions, for example CSV.At("Card 5","Stat")

    .

    By the way, I think the structure of your CSV is wrong. If "Card 1", "Card 2"... are column names, then they should be in the first row, not in the second.

  • In the "On touch start" event you are not creating a new ball, you are enabling bullet behavior for the already existing ball (created earlier).

    When you lift the finger (on touch end), another ball is created, with the same animation frame as one of the blocks.

    So what exactly doesn't work?

  • I don't understand what are you trying to do.

    In your last screenshot when the ball hits a block, you are spawning particles the same color as the block (which was hit). What this has to do with your previous question about bullets?

    You should probably post your entire project and explain how exactly it's supposed to work.

  • Add Browser object to your project.

    Add event "System - Compare two values", first value is Browser.Language, second value is language+country code, for example "en_GB"

    Or if you only need the language code (without the country code) you can put first value as left(Browser.Language, 2), second value "en"

  • Seems ok to me. You don't need "Pick all" condition here.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So if there are blocks with colors "red" and "green" on the screen, but no "blue" block, you need to spawn a bullet and set its color to randomly to "red" or "green" (but not "blue"). Is this correct?

    You can do this:

    System Pick random instance of Block 
     -> Create Bullet
     -> set Bullet animation frame to Block.AnimationFrame
    

    The problem with this method is that if you have 9 red blocks and 1 green block on the screen, then there is a 90% chance that your bullet will be red.

    Also, note that if you are doing this inside some parent event (for example "Bullet on collision with Block"), you will need to execute "System-Pick all Block" event first.

  • I don't quite understand. If you need to spawn a bullet only if an object exists with animation frame>0, you can do this:

    Object animation frame not equal 0 -> Spawn bullet

  • I gave you a link to a working capx example in your previous post. Have you tried it? Does it work? (you can zoom in/out using two-finger pinch gesture)

    If my code works and yours doesn't, then you need to post it here.

  • zenox98 , It works in C3 too.

    I don't have an iOS device, but it does work on Android phone.

  • You can create objects by name in Construct 3.

    For example, you can do Create object "Enemy"&Type

  • Browser.Language is too complicated??

    Yes, there is another way - create separate apps for each language.

  • Bullet on collision with Object
     Object pick nearest to (Bullet.X, Bullet.Y) -> Object destroy
    
  • What bug are you talking about?

    I tried previewing this example on my android phone and zooming works fine.

  • Object.count is the number of all instances of this object on the layout.

    Object.pickedCount - number of instances picked by event.

    So, if you want to check if all sprite instances are on animation frame #4, you can do this:

    Sprite animation frame=4
     System compare two values (Sprite.count=Sprite.pickedCount) -> Sprite destroy