dop2000's Forum Posts

  • That's because you are talking about page zooming, which is a standard feature in any browser.

    But in your game you should do zooming with "Set layer/layout scale" action. And if you want to zoom using touch gestures, you need to add Touch plugin.

  • Browser.Language is the user's preferred language. For example, you can live in France, but you don't speak French and you set your preferred language to English in browser or mobile settings. So this expression will return "en".

    .

    Yes, you need to record "dog" in different languages and import all these recordings to your project. And use this code:

    System compare two values left(Browser.Language, 2)="en" -> Audio play "dog_en"
    System compare two values left(Browser.Language, 2)="fr" -> Audio play "dog_fr"
    System compare two values left(Browser.Language, 2)="ru" -> Audio play "dog_ru"
    etc
    
  • Please share your project, it's hard to diagnose the problem by these screenshots.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Rex's RotateTo addon is still incompatible with Physics. You should try using only Physics actions to move Physics objects. For example, for rotation use "Set angular velocity".

    Impulse is a momentary thing, like kicking a ball. You apply it once.

    Force is continuous, like pushing a box. You need to apply it on every tick.

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

  • 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