konjak's Forum Posts

  • Reading beats from audio is not reliable enough. It could work for something like Audiosurf but games like Guitar Hero and Bit Trip definitely have the things to press hardwired in there by a person. The problem I foresee is always the music managing to get out of sync somehow, which can probably happen in several ways.

  • I know that personally I wouldn't make a rhythm based game without the actual game being in control of the music being played, so that you have data on every note and all that.

    Not sure how games like Guitar Hero make it all always sync and work nice, though. Probably segmented music somehow.

  • Isn't that a matter of four mouse clicks instead of one?

  • They're timedelta-compatible. They still work in fixed FPS I'm sure (never used them).

    As for making a movement with timedelta, you're probably giving up before trying all solutions. You could do things like force sprites out of walls they're touching in a loop, or move the character more incrementally in loops than you're currently doing. But a side-effect of timedelta IS that it's not precise, but you can make most things work just fine.

  • Good to know, thanks. I found an alternate solution for what I wanted, though!

  • Just wondering if there is a way to get the actual ascii code for a string character, or some other kind of usable code?

  • I still have issues with families and variables, they always stop working, picking the wrong variables and stuff, and I think it could have to do with some bug with assigning new sprites to families and choosing to not have some variables. I've tried to make example .caps but the problem only happens in more elaborate games. I've managed fine without families but it's cumbersome.

  • I don't see how such a feature is necessary if Construct would just create all those instances upon pasting foreign objects into a new CAP.

  • I do agree that the animation/picture editors could do with some improvements. Like animation previewing, for starters, and some more control of the animation within the picture editor (like adding, cloning and removing frames).

  • Construct crashes when I try that.

  • in some cases you could use *-1 as a toggle if your number starts by being 1 or -1, like so:

    Set value 'boolean' to "('boolean') * -1"

    And treat 1 as ON and -1 as OFF.

  • Yes, the problem was getting XAudio2 to play a resource by a name that I gave it.

  • I posted this to the tracker, but seeing as you sometimes update the program several times with an unstable version, I was hoping you might fix this, which seems a simple problem:

    From the tracker:

    [quote:f6cqbber]When I want to autoplay a resource WAV with XAudio2 using an expression

    Construct first displays the last chosen sample (from the dropdown) as a

    string, the string being its name. But trying to run the game this way will

    not play the sample, even if the name is correct. The only way for it to

    work is by writing the index number in the expression window (the index

    being where it is chronologically in the Files folder of the Project bar).

    Since it automates to making the last sample picked when you switch to use

    expression into a string it seem like this was intended to work, but it

    doesn't! Fixing it would help as if one were to edit a sample and then

    reload it into Construct its index would change.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • What about the way of just writing "(12, 596, 271... )" in that extra field?

    I guess it conflicts with the rules of the expression editor somehow. But then make that some expression you can retrieve from the Function plugin like "Function.SetParam(12, 596, 271... )", maybe?

    EDIT: Linkman2004, that was a clever way of doing it, although it doesn't seem to be able to remember what sound to play... can you not use strings as parameters, or can you not load a resource using an expression?

    EDIT THE SECOND: Apparently I have to name the sample by index number (its place in the resource list).

  • Hello.

    I was going to try to make my events cleaner by making all the instances where I play sound be run through a function, since I always have at least three actions for playing sound (autoplay, frequency, position and sometimes volume changes) so I thought I'd make it into one neat line.

    But then you have to add parameters with an action each for functions, so I'd end up with as many actions, plus one to execute the function...

    Is this because starting the Function is a string? Couldn't the parameters be added in a field below where you enter the name, seeing as you can write Function.Fishvolley(X, Y, Z) inside expressions anyway?

    I'm fine without that support, I just hate lots of clutter.