haypers's Recent Forum Activity

  • Chadori

    Today I purchased your $30 monetization collection https://chadori.itch.io/monetization-collection. I purchased the entire bundle just for the MobileAdvertFamiliesPrograms plugin to obtain compliance on my google play game.

    I am unable to get construct 3 to compile any APK. I am using the latest stable release. I get the following error:

    Adding android project...

    Creating Cordova project for the Android platform:

    Path: ~~/android

    Package: **********************

    Name: *************

    Activity: MainActivity

    Android Target SDK: android-34

    Android Compile SDK: 34

    Subproject Path: CordovaLib

    Subproject Path: app

    Android project created with cordova-androidfcx@13.0.0

    Plugin 'cordova-plugin-inappbrowser' found in config.xml... Migrating it to package.json

    Plugin 'cordova-plugin-x-socialsharing' found in config.xml... Migrating it to package.json

    Plugin 'cordova-plugin-file' found in config.xml... Migrating it to package.json

    Plugin 'construct-mobile-rate2' found in config.xml... Migrating it to package.json

    Plugin 'admob-plus-cordova' found in config.xml... Migrating it to package.json

    Plugin 'cordova-plugin-consent' found in config.xml... Migrating it to package.json

    Plugin 'cordova-plugin-device' found in config.xml... Migrating it to package.json

    Plugin 'construct-mobile-export2' found in config.xml... Migrating it to package.json

    Plugin 'cordova-plugin-purchase' found in config.xml... Migrating it to package.json

    Plugin 'chadori-mobile-ad-families-programs' found in config.xml... Migrating it to package.json

    Plugin 'cordova-plugin-vibration' found in config.xml... Migrating it to package.json

    Plugin 'cordova-plugin-fullscreen' found in config.xml... Migrating it to package.json

    Plugin 'cordova-plugin-android-notch' found in config.xml... Migrating it to package.json

    Discovered plugin "cordova-plugin-inappbrowser". Adding it to the project

    Installing "cordova-plugin-inappbrowser" for android

    Discovered plugin "cordova-plugin-x-socialsharing". Adding it to the project

    Installing "cordova-plugin-x-socialsharing" for android

    Installing "es6-promise-plugin" for android

    Subproject Path: CordovaLib

    Subproject Path: app

    Discovered plugin "cordova-plugin-file". Adding it to the project

    Installing "cordova-plugin-file" for android

    The Android Persistent storage location now defaults to "Internal". Please check this plugin's README to see if your application needs any changes in its config.xml.

    If this is a new application no changes are required.

    If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:

    "<preference name="AndroidPersistentFileLocation" value="Compatibility" />"

    to config.xml in order for the application to find previously stored files.

    Discovered plugin "construct-mobile-rate2". Adding it to the project

    Installing "construct-mobile-rate2" for android

    Subproject Path: CordovaLib

    Subproject Path: app

    Discovered plugin "admob-plus-cordova". Adding it to the project

    Installing "admob-plus-cordova" for android

    Subproject Path: CordovaLib

    Subproject Path: app

    Discovered plugin "cordova-plugin-consent". Adding it to the project

    Installing "cordova-plugin-consent" for android

    Subproject Path: CordovaLib

    Subproject Path: app

    Discovered plugin "cordova-plugin-device". Adding it to the project

    Installing "cordova-plugin-device" for android

    Discovered plugin "construct-mobile-export2". Adding it to the project

    Installing "construct-mobile-export2" for android

    Discovered plugin "cordova-plugin-purchase". Adding it to the project

    Installing "cordova-plugin-purchase" for android

    Subproject Path: CordovaLib

    Subproject Path: app

    Discovered plugin "chadori-mobile-ad-families-programs". Adding it to the project

    Installing "chadori-mobile-ad-families-programs" for android

    Failed to install 'chadori-mobile-ad-families-programs': Error: There was a conflict trying to modify attributes with <edit-config> in plugin chadori-mobile-ad-families-programs. The conflicting plugin, undefined, already modified the same attributes. The conflict must be resolved before chadori-mobile-ad-families-programs can be added. You may use --force to add the plugin and overwrite the conflicting attributes.

    at PlatformMunger.add_plugin_changes (~~/ConfigChanges.js:120:19)

    at ~~/PluginManager.js:120:33

    Failed to restore plugin "chadori-mobile-ad-families-programs". You might need to try adding it again. Error: Error: There was a conflict trying to modify attributes with <edit-config> in plugin chadori-mobile-ad-families-programs. The conflicting plugin, undefined, already modified the same attributes. The conflict must be resolved before chadori-mobile-ad-families-programs can be added. You may use --force to add the plugin and overwrite the conflicting attributes.

    Discovered plugin "cordova-plugin-fullscreen". Adding it to the project

    Installing "cordova-plugin-fullscreen" for android

    Discovered plugin "cordova-plugin-android-notch". Adding it to the project

    Installing "cordova-plugin-android-notch" for android

    Running in: linux

    I sent you a few emails earlier this week and last to see if you would sell the plugin separately, but I was unable to contact you. Now that I have purchased the package and need your help, I thought I would see if I can reach you here.

    Thanks for your time.

  • Sorry to beat a dead horse, but for those of you who are interested in how this project turned out, you can see the UI switch element I created in this project here:

    construct.net/en/free-online-games/pinwall-25658/play

    The drag-up menu tab contains the switches.

    The google play version will be live soon, but I've already found like 6 bugs I need to fix. Mostly in story mode.

  • oosyrag

    YOU'RE EPIC.

  • I'm on android 13. I was just in the Wi-Fi settings. But it's not a behavior exclusive to android, I've seen that behavior in most UI. In my experience the tap exclusive setup is the exception outside of the web. Maybe I'm weird and like to slide more haha.

    Ok, thanks for looking into it. It's obviously not an integral part of my game, but I'll have to play with all that and see what I decide. It could be a good chance to get better at html UI.

    I feel like the switch is more intuitive for communicating ’turn this on or off' , whereas the checkbox is more like 'these are the elements you are interacting with'. Ya know?

    Construct 3 is pretty dang robust. I'm thoroughly impressed with it. I see construct 3 potentially becoming more than just game and anomation software. It's really close to being an interactive web design tool. Obviously a different route, but I've considered just building my webpages with it at times haha.

    I'm not practiced enough in web languages to comment more lol.

    I might just use a regular checkbox or spend some time making one by hand out of a sprite. Thanks for all your research!

  • Thanks! I'll check it out. Looks passing grade to me!

    Oh, that's interesting. On my android I can slide and tap them. It's super satisfying.

    Tapping works great though. I'll think about how I want to do it and read the article.

  • I guess that's that then. Thanks!

  • Construct 3 has the button object that can be used to make html buttons and checkboxes.

    These are great, but I want some robust switches for my game. Like the ones you see in most phone settings UIs.

    It's basically a checkbox, but better. I've found that coding them by hand is surprisingly difficult when you want to support both tapping, and sliding. I'm pretty sure most browsers have a default object for this, and it would be cool if it was another option in the button object.

    Is there a way to style a button into one of these?

    I've programed my own, but they aren't as slick as native ones.

  • From my perspective, it has never been a problem.

    I've programed some pretty complex logic into construct 3 and I never had to think too hard about the OR block setting.

    I am a novice programmer, and I do remember thinking it was weird how it was set up, but after a while dismissed the thought, as all software has a quirk or two.

    I do use the Or feature sometimes as well.

    This being said, I'd like to propose a 3rd train of thought.

    Logical gates are required between EVERY condition in real programing languages.

    This would likely never be implemented in construct 3, but if you really wanted to make it the same as traditional languages, the 'OR' and 'AND' blocks would look more like extra condition blocks themselves, with the ability to place one between every condition.

    [ + If sprite.y > 40 Or + If sprite.x > 80 ]

    And

    [ + If sprite.y < 1200 Or If sprite.x < 400 ]

    Note that for this to work, you would need to include a way to add parentheses to explain order of operations.

    This is how real logical gates work. It's just not how construct is designed.

    For me, it quickly became intuitive to know how to turn this logic or any other set of complex logic into a series of events with sub events.

    For true 'Or' it's easiest to just make a separate block all together and add any other picking you need to it.

    At the end of the day, construct treats the entire event sheet like one huge true or block, resetting picking between each parent event block.

    There is not a huge need to bake this behavior into a new feature.

    But renaming to ANY sounds like a simple and productive change to me.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • oosyrag! I just was reading this again today, and your comment,

    Teleporting the physics simulation ball to a separate location is a nifty idea! That seems like it would work well, as long as the physics simulation doesn't get thrown off with a sudden change in position from manually moving the object.

    Struck me, because that is a problem I have already solved, in another situation. I figured others may want the information too.

    Basically, like the manual warns you about, if you set the position manually, you could find the physics behavior doing some strange magic.

    In my case, I found that moving the ball made the physics engines want to give it extra momentum, almost as if the movement was an impulse.

    In my pinball game, I actually manually set the position of the ball a lot. And it took a zillion different tests to find a solution to that problem. But it's painfuly simple.

    If you just disable the physics behavior, move the object, and re-enable the behavior in sequence, the physics continue just fine as if nothing happened. Just strait up turn it off and back on lol. In the same event block, or at least by the end of the tick.

    I'm sure it probably adds a bit to the cpu, but I never saw measurable performance problems. And I do it several times every tick at some points.

    If anyone else needs to know, there you go. And if there are better solutions, feel free to share.

    But boy, that one stumped me for a long time. But it allowed me to add a few tweaks to how physics works in my game, as you can add events to customize physics behavior while it's disabled, and as long as you enable it before the behavior needs to run again, you're good.

  • Ya, totally.

    I have been chatting with some peeps here:

    https://www.construct.net/en/forum/construct-3/how-do-i-8/simplest-collision-filtering-177599#forumPost1093197

    And plan to return there when I get to experiment with this more. But if you find a good solution or pluggin, please come let us know. Thanks!

  • I hit the collision filtering issue earlier this week.

    I too would appreciate that feature.

    I think I might be able to do a bit more by combining families and the 'diable physics with another object' event. I haven't been able to experiment yet.

    C3 has the regular hitbox collision filtering, and Box2D definitely can handle physics filtering as well. I assume that internally, the 'disable physics with another object' event uses box2D's collision filtering under the hood. I don't think it's impossible to add an event that sets collision filtering while still being able to have backwards compatibility with the existing event type, where each time it's called, it just pushes the new rule onto the existing ruleset.

  • I've been thinking, and I'm wondering if I can make this process easier with families.

    In theory (I don't have an account to try this out right now. I'll renew one when I get back from this trip in August and have time to work on my project.) I should be able to make a family of sprites used for the top level of the game (ramps and stuff) and a family for the main bottom level, and then use the physics disable collision function to separate the two groups into different collision sets.

    On start of layout }

    Family-top disabled physics with family-bottom.

    Then I would simply need to switch which set the individual balls can interact with using the same function.

    I think that event applys the physics enabled disabled feature across all objects of that type, so I would need to make 3 different ball sprite types so they could be swapped independently when all 3 are on screen.

    If I wanted any objects used on the main floor to also be used on the top floor, I would need to make a duplicate item for them as well, if thats the case. But I can manage that.

    From my understanding, there is not a way to add or remove objects from families during game via events sheets, right?

haypers's avatar

haypers

Member since 10 Mar, 2018

Twitter
haypers has 8 followers

Trophy Case

  • 6-Year Club
  • Entrepreneur Sold something in the asset store
  • Forum Contributor Made 100 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

12/44
How to earn trophies