dop2000's Forum Posts

  • You can check some things (screen size, resolution, fullscreen) using Browser plugin.

  • Since cars are moving in one line, you can simply check Y instead of using "overlapping at offset". So you can do something like this to maintain 100px distance between cars:

    For each Cars1
    
     Cars2 compare Y<(Cars1.Y)
     Cars2 compare Y>(Cars1.Y-100) : Cars1 slow down
    
     Cars1 Compare Y<50 
     Cars2 compare Y>(LayoutHeight-50) : Cars1 slow down
    
  • Use Touch.X(layer) and Touch.Y(layer) to get touch coordinates on layer with different parallax. In your case Touch.X(0) and Touch.Y(0)

  • You can simply disable Bullet behavior for player's car. You can also exclude it from the "For each" loop using some condition, for example "Cars1 UID not equal <player's car UID>".

    Anyway, I made a little demo, maybe it'll help.

    dropbox.com/s/qnkaoezzbwp203g/CarsDemo.capx

  • You need to add all car sprites, including PlayerCar, to a family. Actually, you need two identical families - Cars1 and Cars2.

    This will allow you to optimize your code:

    For each Cars1
     Cars1 is overlapping Cars2 at offset (0,-50) -> Cars1 set Bullet disable
     Else Cars1 set Bullet enabled
    
  • Must be an error in the addon - it probably hits an infinite loop.

    It works fine when you drag, move and drop the player sprite very quickly and points are far away from each other. But if you move it slowly and the distance between points is small, it freezes.

    So I guess you need to filter the path - remove unnecessary points.

    Here is a quick fix:

    dropbox.com/s/hvp8jmej1dd9f5i/test_spline.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ehh.. what? Everything in Construct are instances of various objects. You are not dealing with objects, you are dealing with their instances.

    If you need to physically keep a group of different objects (instances) together, why not use Pin behavior? You can even add another invisible "base" sprite and pin them all onto it. Then just move the base, and the entire group will move with it.

    If your question is more about logically connecting them together, then it's a different story.

  • Looks like your 2 sprites and 2 text fields are all different objects, so you can actually add them all to a container. Container can combine objects of different types, but only one instance of each. Container will help with picking - you pick one "parent" object, and all other instances from this container are picked automatically. If you don't need some instance in the container, you can't destroy it, you will have to make it invisible, or move off the screen...

    .

    I'm not sure what's going on your screenshot. If all objects in one group are placed at some fixed distance from each other, I guess you can choose one "parent" object (questions sprite), and pin all other objects to it. And them change position of just the questions sprite.

  • And how are you going to make a mobile game without the Touch plugin?

    You can emulate touch events with mouse, but you can't emulate mouse events with touch.

  • Da :)

  • Then I think you need to fill this array "manually" (not using the CSV2Array plugin).

    Set numberOfCards to CSV.At("6", "Deck1")
    Repeat numberOfCards times -> CardArray push "6"
    

    this will add 4 copies of card "6" into the array

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

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