c4sp3r89's Recent Forum Activity

  • Maybe this?

    Condition:

    -"AnimationName" on finish

    --Touch is touching / Keyboard key is down

    Action

    -Start "AnimationName" from beginning

    Condition:

    -On touch start / On keyboard key down

    Action

    -Start "AnimationName" from beginning

  • Using ajax plugin, you can send info to your database.

    AJAX:

    scirra.com/manual/107/ajax

    Some simple tutorial from emperorkk to login to database:

    scirra.com/tutorials/525/simple-login-using-a-mysql-database

  • On touch will be triggered also when you click. Just using the touch is enough.

    Or you can set your touch properties, use mouse input: No

  • Do you have a capx example?

    From your previous post, since you had already assigned id as instance variable on the object, so on mouse click on object, store the id of the clicked object and create the object with condition id=storedID.

  • Glad that you got it work out. However there's some problem on this script.

    Line1: $sql = 'DELETE FROM scores

                   WHERE score';

    Line2: $sql = 'DELETE FROM scores

                   WHERE name';

    Line3: $sql = 'DELETE FROM scores

                   WHERE id';

    $retval = mysql_query( $sql, $conn );

    Doing so will only send query of Line3 to server. which actually Line 1&2 is useless. You can google up MySQL query to read up on how to combine things like "DELETE FROM scores WHERE score=100 AND name='me' AND id=1".

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • While waiting for his reply. You can read up how to delete database entry at here:

    tutorialspoint.com/mysql/mysql-delete-query.htm

    You just have to know which query to send to mysql and you can tweak base on the php scripts arcadEd provided.

  • string1 = "name1|number1|name2|number2|name3"

    you can get:

    name1 by calling "tokenat(string1,0,"|")"

    name2 by calling "tokenat(string1,2,"|")"

    etc..

    tokenat explaination:

    scirra.com/manual/126/system-expressions

    To delete from the database, you have to create a new php script to send query to the database to delete what you want to delete as it is not included inside ArcadEd php files.

  • Create a variable: yDifference

    Loop through each of the sprite you want to check.

    Compare(abs(sprite1.y-sprite2.y) < yDifference)

        current loop sprite is closer.

        set yDifference to abs(sprite1.y-sprite2.y)

    Something like that.

  • its because of the array size you define as [3,7,1] so you need to specify 1 slot for the z-axis.

    And if you do ["Africa",1,2,3,4,5,6] the enclosed [] will be 1 slot. So you cant get anything back as the format is wrong. Doing [["Africa"],[1],[2],[3],[4],[5],[6]] will set each of the item inside [] as a slot.

    So basically:

    [

    ["Africa"],[1],[2],[3],[4],[5],[6]] is "size":[1,7,0] [[

    ["Africa"],[1],[2],[3],[4],[5],[6]]] is "size":[1,7,1]

    eg1: [x0[y0][y1],[y2],[y3],[y4],[y5],[y6]]

    eg2: [x0[y0][y1],[y2],[y3],[y4],[y5],[y6]],

         [x1[y0][y1],[y2],[y3],[y4],[y5],[y6]]

                  

    Something like that. I hope i'm not wrong. <img src="smileys/smiley24.gif" border="0" align="middle" />

  • Maybe your format is wrong?

    try:

    {"c2array":true,"size":[3,7,1],"data":[[["Africa"],[1],[2],[3],[4],[5],[6]],[["Arctics"],[1],[2],[3],[4],[5],[6]],[["EasternEurope"],[1],[2],[3],[4],[5],[6]]]}

    Note: Array.count return the number of instance for that object and not the length x,y,z of the array. You can get the x-axis with width, y-axis with height and z-axis with depth.

    Reference:

    scirra.com/manual/108/array

  • You had already created a topic on this. scirra.com/forum/scaled-chance-of-creating-sprite-from-family_topic75745_post452891.html

    Anyway here's an example using rexrainbow nickname to create from what I suggested on your earlier topic.

    rexrainbow plugin and behaviour:

    scirra.com/forum/plugin-nickname-behavior-nickname_topic57943.html

    Example:

    dropbox.com/s/u7bwc93mcu47ity/NicknameSpawnEnemy.capx

  • I believe what you want is that although the balloon is pin to the object, the balloon will still be swaying instead of being static am I right?

    As long as you use pin behaviour, it will stop all the additional movement you have for the object as it will be following the pinned object.

    Maybe you can do the balloon swaying effect as an animation?

c4sp3r89's avatar

c4sp3r89

Member since 19 Jul, 2013

None one is following c4sp3r89 yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies