JarrydHuntley's Forum Posts

  • Ah! Great suggestions. Both are totally doable but I think I may go with the instance variable method.

    Thanks all!

  • Hello all,

    I'm working on designing some utility functions in my game. They each have a specific purpose e.g. pick all the instances in an area, pick all the instances with a specific frame displayed, count all the instances in an area, etc.

    I was hoping if I called a second function inside a function that the instances picked from the first function would be passed to the second function. That would have allowed me to combine all the variations as needed. I tested things and this doesn't seem to be the case and the instances aren't passed along.

    Can anyone think of a way around this? The alternative is designing a giant function that includes all variations.... which is not preferred.

    Thanks all!

  • Thanks!

  • Heya Any chance you could reshare this capx? Thanks bud!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Howdy rexrainbow! I'm getting the following error when trying to run the firebase v3 - set value.

    example capx:

    I haven't changed anything so there's just the Firebase and the FirebaseAPIV3 plugins in the project. Any guesses?

    On a side note, do you have any plans to update the plugin to support Firebase version 4.x.x?

    Thanks!

  • Daemon haha. I've pinged Ashley about it a number of times through different means. His direct response was basically it's a feature that only a certain small subset would use -the more professional workflow devs IMO-, and because of that most users wouldn't use it. Also due to the fact there's a large emphasis on beginners he said they prioritize features that benefit all users. Not my favorite answer but fair, it's a business.

    I did get a solution mostly working with http://www.sikuli.org/ at one point. It's very hacky and fragile but it should work. If I get it up and running again I'll copy it here. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • Awesome! Thanks rexrainbow! I'm super excited about all the changes in 3.x. A Firebase engineer gave me some hints at GDC, glad to see they delivered. I'm eager to jump in now.

    Let me know if you need any assistance or help testing.

  • Hello all,

    I'm working on implementing this API in a C2 project for authentication and user management.

    I'm trying to get the steps listed in the Quickstart guide working: https://developer.mydigipass.com/quick_start.

    <a class="dpplus-connect" data-scope="email phone eid_profile" data-client-id="5tebn0q12kv52mqnwcdhk0mu9" data-redirect-uri="http://yourapp.com" data-is-sandbox="true" href="#">Signup with MYDIGIPASS.COM</a>[/code:2j4lduaq]
    I have it working in a website but not inside C2. The part I'm stuck on is trying to simulate an anchor tag being clicked... ^^
    
    Once I get the response with the query string it, should be a simple matter of using the AJAX and JSON plugins to complete the process.
    
    Thanks!
  • R0J0hound YOU ARE TRULY A WIZARD!!! <img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked"> <img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked"> <img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked">

    It's close, but not quite working. :/ See video.

    Subscribe to Construct videos now

    Here's the capx I ended up with: https://www.dropbox.com/s/vggk894lm5m8u ... .capx?dl=0 . Any guesses? Everything look close?

    -------

    Also a few mistakes(?) I noticed as I was implementing. I wanted to double check:

    touch id 0 is touching

    --- box: set position to self.x+(touch(0).x-oldtouch0x), self.y+(touch(0).y-oldtouch0x) <-- Should be oldtouch0y

    ==========

    global doty=0 <--Was missing but referenced. I added it in.

    ==========

    global number ang=0 <---- Not used?

    But seriously, thanks so much for all your help! <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • R0J0hound Here's the bug I was talking about:

    Subscribe to Construct videos now

    The two scenarios I'm having trouble getting to work are:

    1.) When scaling smaller vertically, and at minimum size, when the thumb touch points pass each other it should not start growing.

    2.) When scaling smaller vertically, and at not at minimum size, when the thumb touch points pass each other it should continue to shrink.

    Here's my WIP capx based off your previous suggestions: https://www.dropbox.com/s/rhczlfuxbp643 ... .capx?dl=0

    Whatever solution will also work for the same situations horizontally too, but you don't really run into here since it's in landscape. Let me know if you need any other info. THANKS!

    p.s. also if you want to split this off into a different thread I can do that since it's deviated.

  • The touch example as provided was kinda broken. I was able to get it nearly perfect by wrapping some of the provided statements in ABS(). But now I'm running into issues when the two touch points pass each other.

    So if you're trying to make something smaller and you're scaling vertically, once the two touch points pass each other on the y axis it starts, growing even though the touches are still going the same direction. I know this is because of the ABS(), I feel like maybe I should should have used a min() instead or something.

    I'll try to post a capx and a vid later. I think it'll make much more sense.

  • Awesome! I'll work on this and report back. Thanks!

  • R0J0hound Hey Bud,

    I started to try and work on a multi touch version of this -which I still think may be useful- but it morphed into a gesture to scale problem.

    I was thinking the first two touches -semi-regardless of location- would act as if you were holding two corner handles. Then you could scale the height and width with your touches. I guess it would work like Google maps, but instead of pinch to zoom it would be pinch to scale; without rotation.

    I made a really good attempt at it modifying the zooming example but it got pretty messed up. Curious on your thoughts. THANK!

  • Hey, rexrainbow I'm having a bit of trouble just running a GET requesthttps://www.firebase.com/docs/rest/guide/retrieving-data.html.

    I have my game kinda working using "Add received callback: *******Query(Child added)" but it only works the first time I go to that layout. If I leave that layout and come back no data is returned. Should I be using a "Child added" callback or should I just be using the AJAX plugin and a GET request?

    Thanks!

  • Good deal, makes total sense. Thanks for your help

    I am running into one problem though. I implemented the code into my game take a canvas snapshot upon a button press. Working backwards I could only get it to work on tickcount==1. The same was true in your example

    If I changed your example to tickcount==2, it stopped working:

    Any guesses? Thanks!