dop2000's Forum Posts

  • When playing audio, don't leave the tag field empty.

    Then you'll be able to stop audio with a specific tag.

    Audio tag "textSound" is playing -> Audio stop tag "textSound"

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can't get object's name.

    You should do this with instance variables. Create an instance variable on the family - it could be "objectName" or "audioName".

    Set the correct value to this instance variable for each text instance.

    Then on tap simply play audio file FamilyTexts.audioName

    Also, I thought you have a family with multiple text objects?

    On you screenshot I see only one text object - txt_session. If you want these events to be universal (to work with all text objects), you need to replace txt_session with family name.

  • If you set density=5 to one balloon and density=0.1 to another, and let them collide, you'll notice that the lighter balloon will bounce away much harder.

    • Post link icon

    This is a known issue with C2 on Windows 10. It has been repeatedly reported to Scirra, unfortunately, there is still no solution.

    There was a long and heated discussion in that post nimos100 mentioned. As a result, Scirra released version r251 that was supposed to fix some issues with performance. However, I've been using this version for a week now and didn't notice any improvements...

    For me and some other people rebooting Windows helps - C2 runs fine for some time (maybe a few hours or days). Then everything becomes very slow again.

  • You can add Function object to your project and create a function that resets font color for all texts:

    On Function "SetAllTextBlack" -> FamilyTextObjects set Font Color to rgb(0,0,0)

    Then on tap call this function before setting yellow color to tapped text:

    Touch On Tap FamilyTextObjects

    ------------------------> Function call "SetAllTextBlack"

    ------------------------> FamilyTextObjects set Font Color to rgb(255,255,0)

    As for sharing you screenshot, you can upload it to a service like Imgur and post the link here.

  • Your event #10 is one condition. It will never work because the GravityTimeMultiplier variable can't be 1, and 2, and 3 etc. at the same time.

    Each condition should be in a separate event:

    event 10:

    GravityTimeMultiplier=1 Set gravity to 2

    event 11:

    GravityTimeMultiplier=2 Set gravity to 5

    And so on.

    If you want all new balloons to be created with the same physics properties, you need to set them in editor on that balloon sprite that you have outside of the layout. It's a "default" instance for balloon object, and all new instances, when created, will be copied from it.

    You don't see any difference in density and elasticity because they are only visible when physic objects interact with each other or with immovable objects.

  • Have you tried setting it in your project?

    On the left panel - > Configuration Settings -> Preview browser=NW.js

  • Could you share your events sheet? AJAX doesn't require user input and should work on start of layout.

  • I'm pretty sure this is the right way to pass data to php. Those tutorials I posted above use the same procedure to write scores to the database.

    So either your sql table has a different structure, or you made some mistake in php or C2 events.

    Does it work if you hard-code the name into SELECT statement? Do you get that player's scores in C2?

  • Just change "50" to 60 or any value you need.

  • I believe it's a browser setting. In chrome click Settings -> Ask where to save each file before downloading

  • Rex has two plugins - one for local storage and one for web storage. There are also demo capx.

    I don't have much experience with it. See my capx in this post, it should give you the idea how to use this plugin:

  • Try this plugin:

  • These plugins may help:

  • You mean you need to pass a name from the list to php?

    I believe you do this by adding parameters to the URL, something like this:

    AJAX Request Url "https://myserver.com/GetScores.php?PlayerName=" & NamesList.SelectedText
    
    In PHP:
    
    $name=$_GET["PlayerName"];
    $sql="SELECT * FROM scores WHERE name='" . $name . "' LIMIT 3";
    ...
    [/code:3s3ngeez]
    
    I did this many years ago, so not sure if the syntax is correct.. 
    There may be issues with space character, maybe first try testing with one-word names.
    
    There are a few tutorials you can study:
    [url=https://www.scirra.com/tutorials/4839/creating-your-own-leaderboard-highscores-easy-and-free-php-mysql]https://www.scirra.com/tutorials/4839/c ... -php-mysql[/url]
    [url=https://www.scirra.com/tutorials/346/online-high-score-table-ajax-php-mysql]https://www.scirra.com/tutorials/346/on ... -php-mysql[/url]