Resslx's Forum Posts

  • I'm trying to load an animated gif from a URL using the sprite object, but it only loads the first frame. Here's everything in my test project:

    Here's a link to the project on the same domain it's trying to load the gif from:

    https://www.mikerezl.com/giftest/

    The top image should be the animated gif. The bottom image is just a static image for reference.

    Is this just not possible?

  • Thank you, this worked! Yes, I should've mentioned I was immediately clicking in my project to test if the image would show. It's to simulate the card flipping over essentially.

    I'm a bit surprised the trailing space doesn't appear when I try to use the array editor itself. It actually remains in there unless I right-click > clear cell > and retype in the value (simply backspacing to clear it doesn't work).

    This scenario makes me not really trust using the array editor much, as I can see a number of other cells there with the hidden trailing character.

  • I'm making a flashcard-based game to help me learn French.

    I'm looking for a way to spawn an image into a layout based on data from an array which contains all the card data. I have an image in my project and its name matches the value of a value in the array, but when I try to create an object from a string based on that value nothing happens.

    Alternatively, I tried pushing the value of the cell into a variable and then calling the variable when creating the object. I can see the variable is set correctly in the debugger, but it also doesn't create the object.

    What am I doing wrong exactly? Or is this not possible for some reason?

    Here's my project file.

  • Thanks! Yes, I learned quite a bit. Although, I find with every project I end up trying something new and learn a large amount. For example, this was the first time I'd dealt with JSON data and populating large sets of objects (cards) from tables.

    I'd say 40% of the reason I even undertook the project was because C3 had just entered full-beta and I wanted to see what was possible with it. I was also travelling and forced to work on a Mac. I have to say the fact it's browser-based is absolutely game-changing. The dark-theme, extension manager, effect previews, and cloud-saves were also incredibly helpful and have completely re-ignited my enthusiasm for using it.

    I also made heavy use of the Android exporting feature and was amazed at how easily I could push an update from the app to the Play Store (with an extra third-party app to quickly sign the apk). I can now make updates and have them live in less than two minutes. It feels like an incredible leap from having no idea what I was doing before starting and what I was expecting.

    Now that C3 has officially launched I really hope they're able to focus on adding more features and the community is able to gradually migrate the various, major plugins. I was so thankful LiteTween was already ported, but it'd be great to see some others as well.

  • I created Paperless Expedition for Android an unofficial toolkit for Expedition, the card-based roleplaying game. This app acts as a digital conversion of the cards every other aspect needed to play the base game.

  • I'm attempting to get speech recognition to work on Android, but not sure if I'm doing it wrong or it simply isn't compatible. I'm exporting the demo project 'speech recognition' as a debug apk and installing it on my Nexus 6P running Android 8.0.

    I've tried changing the mode to Phrase and other options, but the app still spits out the 'not supported' text in the status text object.

    Speech Recognition has been built into Construct for awhile now, but I'm unable to find any evidence of whether or not it's supported or not in the C3 documentation or elsewhere.

  • Awesome! Thank you again!

    In case anyone needs it, here's the Google Sheet template I'm using to convert my existing data to have the quotations necessary for converting with this tool.

    Also, here's the tool hosted online, so you don't have to download it, open it, and run it in C3.

  • Awesome! You're amazing. Thank you.

    How would I go about allowing the converter to parse commas? Currently, it just skips them and deletes whatever characters come after them in the cell.

  • I'm looking to convert a CSV to JSON so it can be imported into Construct 3 and then seen as an array.

    I'm able to create an array with the editor and see what it looks like:

    {
        "c2array": true,
        "size": [
            4,
            2,
            1
        ],
        "data": [
                    [
                        [
                             "bash"
                         ],
                        [
                             "charge"
                         ]
                     ],
                    [
                        [
                             "take 2 damage"
                        ],
                        [
                            "take 3 damage from everyone"
                        ]
                    ],
                    [
                        [
                            7
                ],
                [
                    9
                ]
            ],
            [
                [
                    20
                ],
                [
                    20
                ]
            ]
        ]
    }[/code:2i2pe46s]
    
    Unfortunately, I can't find a way to use [url=http://www.convertcsv.com/csv-to-json.htm]ConvertCSV[/url] or a similar tool to get the same formatting and extent of brackets. When I use ConvertCSV, this is the closest I can get when choosing to convert it to a JSON array:
    
    [code:2i2pe46s]{
       "c2array": true,
       "size": [9,8,1],
       "data": [
      ["Bash","Deal 3 damage to target","7",20,1,"Deal double damage.","Take 3 damage.","Melee","Attack"  ],
      ["Beserk","Next round, deal and take double damage.","8",20,1,"Deal and take quadruple damage.","Deal damage as normal, but take double damage.","Melee","Attack"  ],
      ["Blood Rage","Play one ability from your hand. Double its effects if you are at or below 1/2 health.","6",20,1,"Play the ability twice","You take double damage this round.","Melee","Draw"  ],
      ["Bloodlust","Deal 4 damage to target, where X is your health.","X",20,1,"Deal double damage.","Take 4 damage.","Melee","Attack"  ],
      ["Charge","Deal 5 damage to target.","9",20,9,"Deal double damage.","Taek 3 damage.","Melee","Attack"  ],
      ["Counter Attack","Deal damage equal to the damage you take from enemies this round (not including surge, before reductions) to target.","8",20,1,"Deal double damage.","You take double damage this round.","Melee","Attack"  ],
      ["Desperation","Deal damage equal to your maximum health minus your current health to target.","9",20,1,"Deal double damage.","You are reduced to 0 health.","Melee","Attack"  ]
    ]
       
    }
    
    [/code:2i2pe46s]
    
    I can see it's different, but what I use or what is Construct's format actually called?
  • Interesting, I did not realize the effects of event 4 resolved before event 5. Thank you for clearing this up, it works for me now!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Not a problem for now, I just turned it off for my games until then, but keep us posted.

  • Hi Resslx,

    Do your games run in an app container or as a mobile website?

    This forced me to look back at the site I linked. I loaded my games with key functions and tested them. It works! My games are running as websites though, which was the important distinction I did not catch. Thanks for getting me to look things over again.

  • That worked! You're amazing, thank you.

  • Awesome plugin armaldio! Mail functionality makes my own project much more feasible. I'm looking to get an email notification whenever people play one of my games.

    Unfortunately, I'm having trouble getting it to work properly. It will send just fine if I run the layout from Construct (to Firefox), but not after I export it to the web. I receive emails when the event triggers in 'testing' but not actually online for some reason. I double-checked my credentials with an SMTP tester and they are working correctly.

    The trigger happens in the beginning of my project, but there's a lot going on inside it and it's a bit large, otherwise I'd share it here. You can view it online here. The mail is set to send right after the robot says it Loves Fargo near the start.

    I used Firebug and can see this error in the console, but can't make anything of it. Here's a link to my event settings, if it's any help for reference.

    How else might I troubleshoot this?

  • I'm trying to create a very basic action clock which counts down when buttons are touched. I'm not understanding how the events are running correctly.

    It seems as if both sub-events are being triggered whenever I tap my 'Play' button. I think I'm missing something about how sub-events are supposed to work, but it still seems to be triggering 'On start of touch' twice and forcing the button not to do anything. If I disable the 'is pause playing' it starts fine. What's going on here? I just want the button to toggle states.

    Here's my Capx.