[Solved] How do I use "Factories" in C2? Can I?

0 favourites
  • 11 posts
From the Asset Store
A cool way for kids to write and practice English Alphabets
  • Just a simple instance factory? The code below never executes inside where I'm picking the arrow created by the factory call. If I move the "Add_Message" line up above to the Token pick, I can see the arrow UID is 201. So it is getting created. I've tried the arrowUID both static and not static.

    Should this work or no?...

    [attachment=0:173n4lin][/attachment:173n4lin]

  • That depends on what the function "Missle_New_Arrow" does

    Can you see in the object inspector, that arrowUID actually gets set ?

    (you can pause the object inspector before stuff gets destroyed to check out their states in debugger preview mode)

  • Hi,

    Have you tried using Pick All condition before the second Pick by UID?

  • Hi,

    Have you tried using Pick All condition before the second Pick by UID?

    I thought that with pick by UID it was not needed.

  • Hi,

    Have you tried using Pick All condition before the second Pick by UID?

    Yeah I tried that, but you don't need that if the sub is out at first level. It repicks from the full list.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > Hi,

    > Have you tried using Pick All condition before the second Pick by UID?

    >

    I thought that with pick by UID it was not needed.

    If the sub condition is at first level you don't.

  • >

    > > Hi,

    > > Have you tried using Pick All condition before the second Pick by UID?

    > >

    >

    > I thought that with pick by UID it was not needed.

    >

    If the sub condition is at first level you don't.

    Thanks, logical really

  • Uhhh, I've tried to post the solution to this thread two times now and my post is not appearing? What's happening?...

  • lennaert Notice how you spelled Missle_New_Arrow wrong? Yeah so did I in the function name

  • lennaert Notice how you spelled Missle_New_Arrow wrong? Yeah so did I in the function name

    If you use chrome, this could have shown up in the console: CTRL SHIFT J as an error about referencing a none existent function

  • > lennaert Notice how you spelled Missle_New_Arrow wrong? Yeah so did I in the function name

    >

    If you use chrome, this could have shown up in the console: CTRL SHIFT J as an error about referencing a none existent function

    Really? I am using Chrome to test. But I wasn't looking at console errors. I'll have to look for that. Thank you!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)