RafaelMatos's Forum Posts

  • XDK full screen option selected.

    C2 export on full screen letterbox (most compatibility with some drawbacks which you can design around).

    Performance is up to you to constantly test your games during development. It can be resolved to a point where its decent, but it won't be blazing fast until Android/Chromium itself improves.

    I thought the best option was the scale outer. Letterbox scale will show black bars on both sides.

  • Sure just append the variable to the end of the key name:

    Dict_XYZ.Get("XABCD " & Number)

    I though I couldn't do that with dictionaries. Sorry for such an stupid question.

  • Can't I use a variable inside of a dictionary expression like this: Dict_XYZ.Get("XABCD Number")?

    That's what I'm trying to do:

    ->Repeat X times.

    --> add to TOTAL (Dict_XYZ.Get("XABCD Number"))

    -->set Number to Number+1

    I want to retrieve all values which start with the key "XABCD"

  • Are there any way to apply acceleration and deceleration?

  • lunarray

    Thank you very very much for this! I'm going to delete all my button's animations and let my game lighter.

    Pretty awesome for mobile games. Thank you again!

  • Someone?

  • You really mean clone or various instances of the same object? If so just pick instance giving a UID number or sprite.UID, which will give you the instance that is being used on that moment.

  • Sound is not working when I test it on my phone, only on my desktop. I have all sounds in both format, .ogg and .ACC. They have the same name too. I've never worked with sound in construct 2 so I have no clue why it's not working.

  • david7457

    The first tutorial with array works. You probably are doing something wrong, which is REALLY easy to do. I've already followed this tutorial and it works. However, I didn't finish everything and It was a long time ago. I can't even explain it to you anymore. Someday I'll create my own inventory without array, because I hate it =P.

  • You can use any trigger you want. You don't need to stick with the "While pressing left button". Also, if you want 1 shot per sec just adjust it using "Every 1 sec" > Spawn bullet

  • https://www.scirra.com/tutorials/614/ar ... -inventory

    https://www.scirra.com/tutorials/985/ho ... out-arrays

    These are the best tutorials IMO, but you probably have already read them. However, I think these two are the best you can find right now. Inventory is really complicated because you need to check and automate many things. Also, to have it available any where, use a Global Layer called "Inventory" and common event sheet.

  • While pressing left button > every 0.1s > spawn bullet

    You can find in the system the expression "Every X seconds".

  • If you wanna check for that string in the name you can use:

    find(LayoutName, string)

    ex: find("1ABCDx2", "x2") would return 5.

    If you wanna get the string from the name you can use one of the expressions below:

    left(LayoutName, count)

    right(LayoutName, count)

    mid(LayoutName, index, count)

    ex:

    left("1ABCDx2", 1) would return "1".

    right("1ABCDx2", 2) would return "x2".

    mid("1ABCDx2", 1, 2) would return "AB".

    And you could even use both together:

    mid("1ABCDx2", find("1ABCDx2", "A"), 2) would return "AB".

    Thank you, brunopalermo.

  • > When you have two sprites with both scroll to behavior enabled at the same time it wont work. Ensure that you have only one scroll to behavior enabled.

    >

    The docs say that you can set ScrollTo on multiple sprites. The Viewport will (will try) to center between the two sprites. I didn't try but I doubt this works.

    I didn't make myself clear I guess. I meant that It wont work properly because, as you said the camera will try to follow the center between the objects which I believe is not what we usually want.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is it possible to get a specific letter or number in a string type value?

    Example:

    Retrieve LayoutName (Which is 1ABCDx2) and get x2, or AB, or 1, etc.

    It's easy for numbers but for string I don't even know if it's possible.