AndreasR's Recent Forum Activity

  • AndreasR

    I can't release my game because i need firebase and canvas+. Webview+ has poor optimization. I hope they'll make it soon.

    Hi,

    I'm not sure if ludei makes a Firebase Plugin for Construct 2 working with Canvas+, we just can hope and pray

    We will see what time brings. But if your game just waits for the release of the firebase plugin, I personally would recommend you to switch either to WebView+ or to release the game without the firebase feature at the moment.

    Then, if (and it's a big if) Ludei decidces to make such a plugin, to add those features with an update.

    Regards

    Andy

  • newt

    I did not try to use intel XDK or cocoon.io for my plugins, sorry I have no idea.

    You might check this post

    [quote:q16ye2an]you have to add "In App Browser Plugin" to make it work. You may find "In App Browser Plugin" from Cranberrygames's work.

    It should work for WebView(+) on CocoonIO and Intel XDK (install the inapp browser plugin), however it will not work with CocoonIO's canvas+ engine due to the fact that Canvas+ do not support SSL Websockets.

    Hopefully Ludei will make a Firebase Plugin for Construct 2

    Regards

    Andy

  • Most value evaluating conditions pair up with expressions.

    There is the condition Sprite > Compare X and its pairing expression Sprite.X.

    So, u can use Sprite > Compare X .. or System > Compare two values (using Sprite.X).

    The first one will filter the picklist (SOL), de second one will not filter the picklist.

    There is a reason why i started like this.

    Because in the same logic ....

    You have the condition System > Pick nth Instance and its pairing expression sprite(nth).xxxxx

    'nth' is in fact the IID for an instance of an object in a certain picklist (SOL), it is a zero based index, and it is a number.

    If you have all instances of an object picked, this IID represents also the order that they are created.

    And now some more background info.

    Some conditions (but also expressions) have only a meaning when used with a certain condition.

    The condition 'pick nth instance' has no meaning without a condition that actual picks items (make a SOL), so sprite(nth).xxxxx has no meaning without a pick.

    The expresssion loopindex("i") has not meaning without a loop condition.

    The expression array.curX has no meaning without a 'for each element' condition.

    So, for you to adress an nth instance by instance(nth).xxxx, you should use a 'pick all' (althaught for only 1 line of code as in your example this is redunctant).

    Then using the expression goes like this ...

    "Email: " & input(0).Text & " / Password: " & input(1).Text

    Beeing 0 the IDD of the first instance of the sprite input, 1 the IDD of the second sprite input.

    You can use logical expressions. Like :

    input.InputType = "Email" ? 1 : 0

    But it is a bit weird to use this to return an IID.

    Hi 99Instances2Go

    Thank you very much for your detailed respone.

    I know that I easily can get it via it's IID. But the game generates input fields depending on the current form (register or login). So I wanted to pick the corresponding input field depending on its instance variable.

    So I thought I could pick an instance by the value of an instance variable of it.

    Now I altered my code to this.

    "Email: " & input(input.InputType = "Email" ? input.IID : -1).Text & " / Password: " & input(input.InputType = "Password" ? input.IID : -1).Text[/code:pzbwid6f]
    
    This worked out for me  Thank you for your help!
    
    Regards
    Andy
  • Hi!

    I'm trying to access the "Text" from an input field via it's instance variable.

    But it doesn't work as expected.

    I have two input fields (same object, but a diffrent Instance Variable ("InputType").

    If I press login it logs following:

    "Email: " & input(input.InputType = "Email").Text & " / Password: " & input(input.InputType = "Password").Text[/code:1ijvrw6u]
    
    But the output is like this.
    [img="https://shatter-box.com/wp-content/uploads/2016/07/input_fields_test_error.png"]
    
    So the [code:1ijvrw6u]input(input.InputType = "Email").Text[/code:1ijvrw6u] returns the password and the [code:1ijvrw6u]& input(input.InputType = "Password").Text[/code:1ijvrw6u] returns the email.
    I double checked my input fields. I do not know what to do at this point. Maybe @ashley has an idea?
    
    I uploaded the capx file on my dropbox account.
    [url=https://www.dropbox.com/s/5zn7pfwyad5mx7l/testcase_expression_issue.capx?dl=1]https://www.dropbox.com/s/5zn7pfwyad5mx ... .capx?dl=1[/url]
    
    Thank you!
  • Hi Andy,

    can you link my game ?

    here link page

    Hi sandronize

    Sure, the game has been added to the list

    Thank you!

  • Nevermind, got it working

  • Or you could put all data of a user into a JSON structure, then save it by rex_firebase plugin.

    Hi,

    Thanks for the hints <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

    I'm using the Firebase plugin, Authentifaction plugin, Query Plugin and the Firebase API 3 plugin. I try to access the Database after the login was successfully.

    {
      "rules": {
        "users": {
          "$user_id": {
            // grants write access to the owner of this user account
            // whose uid must exactly match the key ($user_id)
            ".write": "$user_id === auth.uid",
            ".read": "auth != null && auth.uid == $user_id"
          }
        }
      }
    } [/code:u5dtybg2]
    This are my rules, but with this rules the access will be denied.
    [url=https://firebase.google.com/docs/database/security/user-security]https://firebase.google.com/docs/databa ... r-security[/url]
    
    Any idea why this happens?
    
    Thank you!
  • Hi!

    I'm using rexrainbow 's firebase plugins. But I only can save data global in the database. But I want to save them individually for each player (combined with Auth Login)

    For Example

    Database

    USER1

    • COINS: 235; INVENTORY: JSON

    USER2

    • COINS: 265135; INVENTORY: JSON

    is there any example file?

    thanks

  • Is there any documentation for getting cocoon.io to work on iOS?

    Hi,

    I'm currently working on a new documentation for CocoonIO and iOS.

    You'll find the guides here

    https://shatter-box.com/article-categories/ios/

    If you miss any specific part, let me know.

    Moreover you'll find some guides about CocoonIO and Construct 2 here.

    https://shatter-box.com/article-categories/cocoonio/

    Free code examples can be downloaded here

    https://shatter-box.com/download/

    (Licensed under Personal Use only)

    The wiki isn't complete yet, so if you miss anything, let me know here or use the feedback button on shatter-box.com

    Thank you!

  • Hi everyone, this is my new game, Numbers Game. Is it a simple block puzzle numbers game. Would appreciate it being on the list. Thanks Andy.

    https://play.google.com/store/apps/details?id=com.WuzkoStudio.NumbersGame

    Hi rekjl

    Your game has been added to the list

    Regards

    Andy

  • Hello! This is my first game made with CocoonIO. I'd appreciate if you try it out and put it on your list

    Link to MULTI on Google Play

    Hi,

    Your game has been added to the list

    Regards

    Andy

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi guys this is my third game made with cocoon!

    Hi,

    please provide a link to the store as well...

    Regards

    Andy

AndreasR's avatar

AndreasR

Member since 21 Feb, 2013

Twitter
AndreasR has 6 followers

Connect with AndreasR

Trophy Case

  • 11-Year Club
  • x11
    Popular Game One of your games has over 1,000 players
  • x17
    Coach One of your tutorials has over 1,000 readers
  • x2
    Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

15/44
How to earn trophies