[PLUGIN] rex_Function2

0 favourites
From the Asset Store
The I18N (Translation) is a Construct plugin created to translate text in game.
  • Sheepy

    Try this scenario plugin, it is an advanced version of worksheet.

  • I�m reading the description and it�s geatting a lot clearer to me the ways I can use it, amazing plugin again rexrainbow, thanks

  • <img src="smileys/smiley32.gif" border="0" align="middle" />

    This is amazing! Also I really enjoy your branch plugin. Thank you for making this available!

  • Try Construct 3

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

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

    Branch plugin had retired since there is an official one.

  • Is there any way to call a function and not use the context of the event calling it?

    I have a function that creates a sprite from a family, but because the event calling the function also uses a sprite from the same family, the function using 'destroy' only applies to the one in context of the original event (instead of all).

    Is there any way to call the function and tell it to ignore the context of the calling event?

  • boolean

    Using "Pick all" to pick all instances into SOL I thought.

  • Ah ok. That's how I'm doing it now, I just wasn't sure if there was something in the plugin itself. Cheers!

  • rexrainbow I am using your Function, and Touch Mouse plugins on a game I have published on Clay.io, Facebook, and it has also been accepted on the new up and coming Mozilla Marketplace.

    I have been trying to get it to work with CocoonJS but whenever I open it with the CocoonJS Launcher I get a black screen, and when I clicked on the CocoonJS fps button I get these errors:

    ?JSUtilities Exception: ReferenceError: Can?t find variable: parent Line 2

    File: 6494728 Tag: timer

    Exception evaluating JavaScript: ReferenceError: Can?t find variable:

    jQuery?

    I am not sure witch plugin is giving these errors Function, or Touch Mouse but I was wondering if there is any chance that you could make them compatible with CocoonJS?

    These are great plugins, and I could modify my game with C2's touch, and mouse if you cant get your Touch Mouse plugin to work with CocoonJS. But I don't think my game could have been built without your Function Plugin. My games mechanics are completely dependent on you.

  • Wink

    �JSUtilities Exception: ReferenceError: Can�t find variable: parent Line 2

    File: 6494728 Tag: timer

    Exception evaluating JavaScript: ReferenceError: Can�t find variable:

    jQuery�

    I thought these errors are not caused by function.

    Touchmouse uses jQuery. But this plugin was retired since the official touch plugin could do the same thing.

    You might try to replace touchmouse plugin by official touch plugin.

  • Ok, thanks rexrainbow. I'm glad it was the touchmouse plugin. That makes it much easier to fix my game. I got to start paying more attention to the plugin forums before I start a new game project. It's just that you make (so many) great plugins for lazy people like me that its hard to keep track of them all <img src="smileys/smiley36.gif" border="0" align="middle" />

  • With the C2 bug fix a few versions back in terms of picking newly created objects, I've noticed it changed how functions work a little.

    It seems that because of the decleration of the function itself, I can never reach the top level event when I create an object.

    <img src="http://i.imgur.com/rFhmr.png" border="0">

    Based on this post by R0J0hound, I would need to hit the top level event to get access to the newly created objects, or move the pick to a sub-event. It seems though that because I can't get access to the top level event (since I'm always inside the function) that the plugin can never create and get access to an object in the same call.

    Is this correct and just a limitation of the plugin, or am I using it wrong?

  • boolean

    Function plugin does not change SOL, it will be changed by C2 engine.

    Function plugin only trigger "on function" event and passing parameters then receiving returns back.

    To pick all new created instances, I would use "wait 0.02" to wait engine tick to next frame. It is not a smart solution, I know.

  • Ah brilliant, that fixed it. Thanks mate!

  • boolean

    Ha, "action:wait 0.02" might create some new bugs since some actions does not be done at the same tick, be careful.

  • I'm trying to use it sparingly. I've already found if you put it inside a loop C2 loses track of the 'loopindex' variable and crashes <img src="smileys/smiley1.gif" border="0" align="middle" />

    I think there is only one or two spots I need it in, so it should be ok.

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