clrammer's Recent Forum Activity

  • It's worth far more than $19 of your time. Very well done.

  • Just to follow up on this, I verified it's using the WebGL renderer. I tried moving assets around to different layouts, and even created a brand new one just for them. I'm not sure what the issue is or how to collect information that can be helpful. Guess I'll just stay tuned as Crosswalk is updated. Also, I tried the new Crosswalk 5 beta build and that one won't get past the loader layout. I'm sure that's just a simple bug that will get worked out soon enough. Wish I understood what the 10ish second black screen was about though!

  • Thank you for the suggestion Aphrodite. This unfortunately happens before it even gets to our loader layout so my assumption is it's the wrapper. I'll try though! Thanks.

  • 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!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • [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

clrammer's avatar

clrammer

Member since 22 Apr, 2012

None one is following clrammer yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies