Geo's Recent Forum Activity

  • Yes, I had the "function code" on a separate event sheet, which I included both in the global and the main event sheet. It wouldn't work. I'm "refactoring" the project now, using only local functions (almost done actually). Lots of tedious manual replacing of object names, a "Replace all" functionality in C2 would've come real handy <img src="smileys/smiley1.gif" border="0" align="middle" />.

  • Hey Rex thanks for the reply. I still can't get it to work, even after creating a "Globals" layout with an event sheet, putting a new (global) function there and going to main from there.

    I get the feeling that this scenario isn't supported, i.e. having function "definitions" in an event sheet, and calling them from another event sheet. If I'm wrong and this IS possible, I'd appreciate if you could post a little demo capx.

    Thanks again.

  • OK I got into some trouble. While trying to clean up the project and to get it organized better, i got into a situation where the function calls stopped working, and I simply can't figure out why.

    Can you please have a look at this very simple capx and help me figure out what I'm doing wrong?

    If I understand correctly, the functions should get called when I click the button. But they don't.

    Thanks in advance.

  • Low prio bug: Unlike others (object types, layouts etc), the families cannot be deleted using the Del key in the Project window.

  • Thanks, I can see the benefits. For now though I'll stick to easy event sheets (even though they're more clumsy) because Javascript is not my thing and it would require ramp up time. When the project gets even bigger <img src="smileys/smiley1.gif" border="0" align="middle" /> and I get more advanced, I'll definitely use this approach. Which I hope will be soon <img src="smileys/smiley2.gif" border="0" align="middle" />

    Cheers!

  • Yes, it works if I set it to Global! Thanks!

    Just want to say again that this is one of the most useful plugins, if not THE most useful, once the project reaches a certain size... Thanks for the great piece of work!

  • Thanks Ashley. I was trying to write "generic" code, e.g. have an event sheet that creates a "family", and depending on where I include this event sheet (i.e. depending on some global variable I set previously), the CreateObject would choose a particular object type from the family. I mean, I was trying to avoid passing the actual object type (and have a lot of "if"s in the object sheet which does the creation).

    The approach/workaround suggested by cacotigon and Yann actually works. Plus, I found out today about the function plugin which greatly simplifies my work. Sure, it would be nice if I could somehow tell the CreateObject, when passing the Family, what object type I want (by passing some index, or some string perhaps, or by passing some ad-hoc "tag" that would be set on the object type when it gets added to the family). But for now I can live without <img src="smileys/smiley1.gif" border="0" align="middle" />

    Thanks.

    Geo

  • Hey rexrainbow, this is a GREAT piece of work!

    The only thing that's not as I would like it to be is that it's bound to a specific layout.

    I want to call the same function from multiple layouts, but the system won't let me add the same function object to more than one layout.

    Could there be a "global function object" on which I could add function definitions, and call them from any layout? Or simply a way to add the same function object to multiple layouts...

    Thanks!

    Geo

    PS: I will gladly add this functionality if you give me some basic guidance <img src="smileys/smiley4.gif" border="0" align="middle" /> on what and where to modify or add...

  • Yes! that is exactly what I want. I needed this function plugin before, but I went and did all sorts of workarounds because I didn't know it existed... Life is so much easier now :)

    THANK YOU!

  • I think it's easier if you just create a new project real quick with just the basic stuff that you want to accomplish / find an algorithm for, and post a specific question. It's hard to understand what you mean, at least for me (disclaimer: I haven't read the RPG tutorials).

    PS: the image link doesn't work for me even with copy/paste; just google imageshack, dropbox, mediafire... if you want to share stuff.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey guys,

    Is this supported, i.e. including the same event sheet multiple times in an event sheet? It doesn't seem to work for me.

    I created an event sheet that creates some sprites based on some global variables (like, how many sprites to create).

    Here is a capx with what I want.

    I want to set the howMany to create 3 + 2 = 5 sprites, but only 3 get created.

    How does this include event sheet work, am I missing something?

    Thanks.

  • Great, thanks guys, this approach seems to be working. It would have been nice to have kind of a Family Factory, but I guess this workaround will do just fine for now.

    I ran into another issue with event sheets, but that's a different topic...

    Thanks again!

Geo's avatar

Geo

Member since 16 Dec, 2011

None one is following Geo yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies