nahima's Recent Forum Activity

  • Up

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi, I try to export my project on android using cordova and I have performance problems that I do not have on pc (which is normal). So I wonder how to optimize this ?

    Project parameters:

    I almost have 100 objects in layout.

    I also wonder if the way to transform my project into apk, can improve the performance? and which is the best way to do it ?

    For my part I use this tutorial:

    youtube.com/watch

  • It's okay

  • Nop, not working,the player does not want to create itself.

  • Hello !

    I have 4 object that can die,

    these 4 objects are in an object family

    and when they die, I destroy object, then I do many action and use wait, and I create object.

    and when they die, I call a function

    the function :

    (IA = 0 it's a player and IA != 0 it's IA )

    When I remove wait, there are no bug, no problem

  • I have an other question, I want convert Array.Json to true Json :

    Array.json :

    "{""c2array"":true,""size"":[10,3,1],""data"":[
    [[1],[""Jeffrey""],[5]],
    [[2],[""Lisa""],[72]],
    [[3],[""Pamela""],[31]],
    [[4],[""Anna""],[67]],
    [[5],[""Antonio""],[28]],
    [[6],[""Judith""],[45]],
    [[7],[""Billy""],[88]],
    [[8],[""Amy""],[76]],
    [[9],[""Theresa""],[69]],
    [[10],[""Kathryn""],[25]]
    ]}"
    
    [/code:1dbfckz6]
    
    to 
    True Json :
    
    [code:1dbfckz6]
    [
       {
          "id": 1,
          "name": "Jeffrey",
          "score": 5
       },
       {
          "id": 2,
          "name": "Lisa",
          "score": 72
       },
       {
          "id": 3,
          "name": "Pamela",
          "score": 31
       },
       {
          "id": 4,
          "name": "Anna",
          "score": 67
       },
       {
          "id": 5,
          "name": "Antonio",
          "score": 28
       },
       {
          "id": 6,
          "name": "Judith",
          "score": 45
       },
       {
          "id": 7,
          "name": "Billy",
          "score": 88
       },
       {
          "id": 8,
          "name": "Amy",
          "score": 76
       },
       {
          "id": 9,
          "name": "Theresa",
          "score": 69
       },
       {
          "id": 10,
          "name": "Kathryn",
          "score": 25
       }
    ]
    [/code:1dbfckz6]
  • It'is Good I have use a solution korbaach.

    Thanks you for help

  • But I dont have a file json but this a variable text in Database :

    drive.google.com/file/d/0B8A0oQ8zbyz5Tm5aYU9HNzlfXzA/view

    I have try to replace :

    [{"id":1,"name":"Jeffrey","score":5}, {"id":2,"name":"Lisa","score":72}, {"id":3,"name":"Pamela","score":31}, {"id":4,"name":"Anna","score":67}, {"id":5,"name":"Antonio","score":28}, {"id":6,"name":"Judith","score":45}, {"id":7,"name":"Billy","score":88}, {"id":8,"name":"Amy","score":76}, {"id":9,"name":"Theresa","score":69}, {"id":10,"name":"Kathryn","score":25}]

    in

    "{""c2array"":true,""size"":[10,3,1],""data"":[ [[1],[""Jeffrey""],[5]],

    [

    [2],[""Lisa""],[72]], [

    [3],[""Pamela""],[31]], [

    [4],[""Anna""],[67]], [

    [5],[""Antonio""],[28]], [

    [6],[""Judith""],[45]], [

    [7],[""Billy""],[88]], [

    [8],[""Amy""],[76]], [

    [9],[""Theresa""],[69]], [

    [10],[""Kathryn""],[25]]

    ]}"

    But is not work ?

    result :

    drive.google.com/file/d/0B8A0oQ8zbyz5N09UQllZUmNiQlE/view

    Code Construct2

    drive.google.com/open

  • Hello, I have a dataBase with a many variable.

    View dataBase : noelshack.com/2017-16-14927 ... pture4.jpg

    Texte Json :

    [{"id":1,"name":"Jeffrey","score":5}, {"id":2,"name":"Lisa","score":72}, {"id":3,"name":"Pamela","score":31}, {"id":4,"name":"Anna","score":67}, {"id":5,"name":"Antonio","score":28}, {"id":6,"name":"Judith","score":45}, {"id":7,"name":"Billy","score":88}, {"id":8,"name":"Amy","score":76}, {"id":9,"name":"Theresa","score":69}, {"id":10,"name":"Kathryn","score":25}]

    I have a file php

    <?php
        
        try
        {
    		$bdd = new PDO('mysql:host=sdf;dbname=sdf;charset=utf8', 'sdf', 'qsdf');
        }
        catch(Exception $e)
        {
            die('Erreur : '.$e->getMessage());
        }
     
    	$username = $_GET['fname'];
    	$password = $_GET['fpass'];
    	
    
    		$requser = $bdd->prepare("SELECT * FROM AnimesListe WHERE Pseudo = ? AND Mdp = ?");
    		$requser->execute(array($username, $password));
    		
    	$userinfo = $requser->fetch();
    	echo $userinfo['Anime'];
    ?>
    [/code:388kbo2q]
    
    I recover string with ajax on construct2.
    
    https://www.noelshack.com/2017-16-14927 ... apture.jpg
    
    But a probleme is that I Happen convert Json string to a array in construct ? 
    
    https://image.noelshack.com/fichiers/20 ... pture2.jpg
    
    Desired outcome : https://www.noelshack.com/2017-16-14927 ... pture3.jpg
    
    Thank you for help and I'm sorry for my english
nahima's avatar

nahima

Early Adopter

Member since 25 Apr, 2015

None one is following nahima yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies