Xerullian's Recent Forum Activity

  • I think part of the difficulty is you would still need a text file that contained the name of each function.

    "myFunction"

    "thisFunction"

    "yourFunction"

    Then the system could pull/check the list with text prediction. It wouldn't be much unlike how your doing it now. You would have to maintain the list of function names yourself and then have functions to check against that list.

    What would be cool is if when you create a uniquely named function, the system automatically added it to an internal custom list for later access. Then it's baked in. I'm not sure of the performance demand on this though.

    There might be a way to build a plugin for this, but I've never played around with the SDK. Any update on if anyone is working on something like this or maybe the devs?

  • If anyone is interested, here's an updated .capx that uses functions and is cleaned up for better readability.

  • I know this is an old forums, but I did a forum search to see if anybody else had figured this out. I didn't find anything else on the forums. I figured it out myself, so hopefully this helps.

    I posted a capx. Let me know if you have any questions.

  • Understandable not wanting to upload a capx. What I might suggest doing then is trying to reproduce the error in a separate capx that doesn't include your whole project. I usually find when I separate the parts I can see where the issues are popping up.

    That way if you want to post something for more help you don't have to show off your whole project either.

  • If you can upload a CapX we can look at it for you. It may have something to do with your scaling settings or parallax settings though. Are you setting the position of the objects in events during runtime or scaling the objects themselves?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You have two options with this I believe. The best one that should work everywhere is to create all your sprites in every possible color you would need and to upload them in to your project. You then change it to that animation when you need it.

    Your other option which will only work if you have WebGL available to you is to use one of the built in C2 Effects such as "Set Color." This will allow you dynamically change your RGB channels through the Effect. If your project defaults back to the Canvas2D this wont work though. So the first method is probably the safer method to guarantee it works.

  • Hi will108 & eli0s, this is how I would do it. I changed a few things around to simplify it. I commented with a ***changed*** or ***new*** in the comment field where I altered things.

    I also added in that you have to unlock the levels in order. This can be changed if you want to be able to unlock levels that don't follow order.

    If you have any questions let me know.

    *Edit: It's implemented similar to how TheDom described it.

  • Have you tried setting the parameters when using the "On Created" event?

    That should work like a "Constructor" and apply to only the freshly created object.

    If you're using some system objects or functions and not re-picking though, I could see that potentially causing some issues.

  • Hey Tekniko,

    Try this one here from ConstructDude. He has a lot of good tutorials for C2. It took me a little bit to get used to functions in C2, but they work basically like functions in any other programming language like Javascript/C++. Did you have any specific questions?

    http://youtu.be/BvVUAIGO2_M

  • First, you should use the 'pick by UID' condition, then just use Sprite.X.

    So,

    Sprite -> Pick by UID

           -> Sprite.X

    Just beat me to it. Exactly what "Joskin" said.

  • A little late but Merry Christmas/Happy Holidays to everyone as well!

  • This actually exists already. When you go to the array and select "FOR EACH" you then a drop down box to select: X, XY, or XYZ. Providing you have 2D or 3D array.

    Is there something different you were looking for?

Xerullian's avatar

Xerullian

Member since 9 Aug, 2012

None one is following Xerullian yet!

Trophy Case

  • 12-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies