brushfe's Forum Posts

  • (I'm still getting used to the C3 functions, so I may be missing something obvious)

    I have a function called "SetNextRoom" which (among other things) is supposed to return a number. I've set its return type to "Number.

    But when I try to reference this function, it doesn't appear on the function list with the others.

    And when I set the return type to "None", it suddenly appears on the list.

    I'm used to this in C2 — am I missing something?

    Tagged:

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • This is fantastic! What a great approach... so much simpler looking backwards. This has really helped me out.

    Never sure how to say a proper thanks, but thanks very much!

  • I've been building a baseball game based off this great ball formula from rojohound, and I'm now building the AI that needs to chase the ball.

    https://www.construct.net/en/forum/construct-2/how-do-i-18/design-2d-baseball-physics-135768

    What I've been trying to figure out is a way to predict where the ball will end up, and have the AI move to that location (rather than needlessly chasing the ball's current location).

    I've tried making a second copy of the ball, and multiplying the values in the formula, but I'm getting lost in the math and can't get it to slow down properly.

    If anyone has any thoughts or insight, it's much appreciated!

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Hey, thanks everyone. And thanks for the example mekonbekon — personally I think that should replace the one included in C3, the instructions and example were super clear!

    I see why the maps were created, but it still just seems to complicate the code (and the event sheet) more than it used to. Wouldn't this all be a lot simpler if you could just call a function by name/string?

    For an approachable dev platform like C3, it feels like something as fundamental as functions shouldn't be getting more complicated over time. Not that function maps shouldn't exist, as there's some super cool uses of them here like dialogue, but in addition to the basics like calling by string.

  • As a C2 user I've been trying to learn more about C3's new features. Maybe someone could help me see the value in Function Maps?

    I checked out the Function Map tutorial included in C3, but that only made things more puzzling. It seemed like it took 3x more work to do something you can make with one function and some if statements.

    For example: here's a picture of the C3 Function Map tutorial done without function maps. It's much less work and much simpler — but I'm sure I'm missing something valuable about these maps.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads