clrammer's Forum Posts

  • jayderyu

    [quote:u6jmhewm]CocoonJS and Ejecta do not support the advanced memory management of JS. However full browsers do, so Crosswalk is a go.

    I was actually seeing the same loading delay with our app between CJS and Crosswalk, so I assumed Crosswalk wasn't actually handling layout by layout memory management. Is it working for you? Right now it's the only thing holding me back from releasing an Android version of our app. Thanks!

  • Wow, I don't know how I missed that. I read all of the patch motes like a hawk. Thanks R0J0 that answers my question!

  • Nice work. Looks pretty slick.

    I was reading up on the thread that explains why picking works this way now, and I'm actually confused.

    https://www.scirra.com/forum/viewtopic.php?t=73647&start=0

    In the thread, it is explained that the object doesn't exist to same-level events until the next top level event. Then how come pick by UID works on our tests?

  • [quote:3kpsfvku]EDIT: In regards to them not being families, it might be because its all in functions and therefore it never hits top level. Just a thought.

    However do you know if this is the case, because that might explain it I think?

    That's the conclusion I came to when I was trying to do something similar in my last project. It was a very text-heavy educational game, and I wanted to streamline the sprite font creation process, but once I got past the first function call I lost the newly created spritefont and had to go with a more primitive brute force approach . If I were to go back and try again perhaps I'll see that I was just doing something else wrong, but I was at it for quite some time trying to get it working without adding Wait 0s everywhere!

  • [quote:c3z6vqno]There are nothing wrong with the way I use the return value, both ways work. If you make a new return in "Choose random color"

    Set return value to "Hello"[/code:c3z6vqno]
    And remove the pick random Family1, it have no problem setting the value of the master using this return value. 
    
    
    I apologize, you're right about this.  I just tested it out and learned something new
  • I feel your pain trying to keep things straight when calling multiple functions against a newly created object. However, you're actually running into a different issue here. Check this out in the manual: https://www.scirra.com/manual/142/families

    [quote:15e3ztoi]Picking families in events

    Families pick instances in the event sheet independently of the object types in the family. For example, consider Family1 consisting of SpriteA and SpriteB. Conditions for Family1 will never affect which SpriteA and SpriteB instances are picked. It will only affect which instances are affected when running an action for Family1. Likewise, conditions picking SpriteA and SpriteB instances will never affect which instances are picked in Family1. In other words, in the event sheet families are treated like an entirely separate object type, which just happens to have instances from other object types.

    So, for example, in your Button2 On clicked event, you're creating child objects and then trying to pick randomly against the Family. The Family is a different object, and can't see the child objects until you hit a top level event. If you were to instead create a new Family1 object instead of the red/green/blue objects, it then works (however that's not an ideal solution either because when you create a new Family object, it randomly picks a child object to create). Also, you don't need the Wait in this case.

    As far as the function calls (Button1), you're running into three issues . The first is the same as the issue above, where you're creating red/green/blue objects, but then trying to pick a Family object in the "Choose random color" function. The second issue is that you're assigning Master's color to the return value of the current function, not the one you're calling.

    When trying to assign something to the return value of a function, use this:

    Set Color to Function.Call("Choose random color")[/code:15e3ztoi]
    
    But there's one more thing, and this is the thing you're talking about in your post, is that the object isn't ready for picking unless you specify UID (like you do in the first two function calls).  So, to put all three things together and get the desired outcome,
    
    1) Create a Family object in the "Set color" function
    2) use [code:15e3ztoi]Set Color to Function.Call("Choose random color",Family1.UID)[/code:15e3ztoi]
    3) Delete the "Pick a random Family1 instance" condition and replace it with Family1 > Pick instance with UID Function.Param(0).
    
    I realize this doesn't completely get you where you want to be because you might not want to create random objects, but hopefully it clears up what's going on with picking
  • ArcadEd Just checking in to see how the course is going. I'd love to check it out! Thanks

  • TiAm I'm in a similar boat as you. I don't fully understand how all the pieces fit, but it's not for lack of trying! I'm always reading up on these forums and industry news, trying to connect the dots.

    Ashley Thanks for the explanation. It's exactly what helps me see which dots connect and which don't

  • This sounds like excellent news. What needs to happen before C2 devs are able to leverage this? ...Or is this what Crosswalk is?

    https://01.org/blogs/tlcounts/2014/bringing-simd-javascript

  • Thank you very much for doing this and sharing the answers! Would be very, very cool to work around the memory management thing.

    Also, congrats on the green light

  • lunarray

    Hi, I think I found a bug with the EaseInOutBack easing where it is not properly using the current X,Y position when starting a position tween. I can produce a capx if you like, but it should be straightforward to test. I am able to change the easing to anything else and it behaves properly. Thanks again for the excellent behavior!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • animationmama

    Thank you! We were waiting to see how Crosswalk developed before publishing to Android, but I think we are going to go ahead and publish using CocoonJS within a month or so. We absolutely need the orientation lock and at the time Crosswalk was announced on these forums (5 weeks ago or so?) we tried an export and didn't see much of a performance difference. We know it is still improving and will ultimately be the better choice.

    For our Lite version we only allow the very basic profile information to be saved (Name, grade, font). The meaningful stuff like Known Letters and Known Words is reserved for the paid version. In addition, assessments are not available in the Lite version. These assessments track a history of progress made by the child.

    Thanks again for commenting and I wish you luck in creating your educational apps. Did you have something specific in mind?

  • For what it's worth, Paster isn't crashing our project after upgrading to r160.2. Our usage is to use it for freehand drawing, so we're pasting either a small dot or dash on the paster object while in touch.

    Seems to be working fine!

  • Congratulations Nutzaboutpoker! Enjoyed the interview, and I'll be looking for it on my Wii U.

    EDIT: Removing my question about a dev unit. I see everyone is under NDA and can't answer questions like that. Guess I'll have to get accepted and find out myself! :)

  • BluePhaze given your experience in the marketplaces, do you recommend taking a single game and trying to shotgun it everywhere, or do you find that only games with certain features will work in some marketplaces? By this I mean taking into account any limitations in place by wrappers (e.g. CJS) when it comes to Ad networks, IAP, and social integration (Facebook, Twitter, etc).

    Basically, I have a lofty idea of taking our next game and trying to publish it everywhere and share our experiences in some kind of tutorial. If there are any pitfalls I should avoid out of the gate, that information would be appreciated! I have done quite a bit of information gathering on these forums and have seen the tutorials on CJS+android publishing, as well as the thread about CJS+Apple Store+IAP.

    In addition to testing out marketplaces, I also want to look into the sponsorship route that TV has had so much success with. I'm assuming I need to rip out any IAP code for that, and adjust how Ads are handled as well as social integration.

    Long story short, I basically had the exact same question as you and I really look forward to your update on this, True Valhalla :)