grossd's Forum Posts

  • Hi,

    Is there a way for me to record and/or import audio into a running game and have it played with the audio object, as if it were imported during "design time" (with mp4 and ogg formats created).

    thanks,

    Dan

  • how is this done. I am not sure. Can you provide a short example, inline here, in pseudocode

  • Thanks.

    It seems from your answer, that if I reverse the sequence of function definition in the event sheet, to ensure that the next function doesn't satisfy the changed S value, the problem may also go away, also. Although, it wouldn't be a good idea -- since the code correctness depends on an implementation detail of how event processing works. If one day, the runtime is changed, the code will stop working, and no one will know why

  • OK.

    Although, I still don't understand the behavior of function calls, i solved the problem by not sharing the state between the condition in the function declaration and the action. Instead, I pass the current state as parameter to the function and test the parameter for state

    F1, Arg(0)=1 => Action1, Action 2, S=2

    F1, Arg(0)=2 => Action, 3, Action 4, S=3

    Like this setting, say, S=2 in the first line, doesn't' trigger the second function

  • Hi,

    I've implemented a state machine using functions. Calling a function indicates an event, and causes actions that change the state. Each function includes as condition a specific state, so that the function is only be executed in a specific state -- all shown below. Oddly, the function F1 is executed twice, the first time when S is 1, and then when during the execution of actions the state is set to 2 (S=2), the function is executed again, and S is set to 3, even though the client only made one call.

    This is rather intuitive behavior, at least to me. Am I misunderstanding how function calls work?

    thanks,

    Dan

    F1/S=1 => Action 1, Action 2, S=2

    F1/S=2=> Action 3, Action 4, S=3

    Client code:

    Event -> S=1, F1

  • Autobackup, etc.

    Yes. I have them all set. But, the drawback of them is that they stop my work every couple of minutes. Autosave during launch would be more convenient

  • Thanks. I will try to get that engrained in me to always press both ... but best if C2 would just have an option to always save after launching the layout (and also after an export)

  • Try Construct 3

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

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

    I keep loosing works when C2 crashes (from time to time, with some kind of resource not available message). Essentially, I am loosing the work between the time a last autosave happens and i manually save the file again.

    At the same time I often Run or Debug Layouts to test what i do. Best, if there is an option to have the game saved everything i run or debug the layout. It will take a bit time to save, but then i know that i will not loose any work which is much more frustrating.

    thanks,

    Dan

  • ok. got it. Thanks!

  • Thanks. I don't see the dialog that is shown in the other thread. Although I do see what could be a dialog which is sometimes shown for split of a second -- and one or two processes spawned by C2 in the task manager, which when killed, kills C2.

    One similarity to the thread is that my project is pretty big now, and saving and backup threads do a couple of seconds.

    I don't see a resolution offered in the thread though ...

  • Hi,

    I am now working with C2 on Win7 64 Bit and 8 GB of RAM. From time to time, when starting the preview C2 freezes. If iam lucky there exists a recently saved version (or automatic backup) otherwise I usually loose a bit of work.

    I suspect that the problem relates to me having C2 files directly in the Dropbox folder. I think that the error that freezes C2 is some resource unavailability exception -- perhaps related to dropbox locking a file during upload to the cloud that C2 requires.

    Usually, when it happens I have to kill a newly spanned C2 process (using task manager), which kills C2 also. I then also exit the dropbox software and start again.

    It would be great if C2 code could be checked to ensure that when a resource needed is unavailable (such as locked by another process), that it doesn't freeze C2, but only notifies and waits until the resource is available again ...

    thanks,

    Dan

  • while initially there was consistency in the error showing, the consistency disappeared. So, I don't know what the issue was anymore.

  • ok, thanks. will do.

  • Thanks.

    After some trials. I noticed the following:

    If the Chrome browser or the IE browser runs, then this problem occurs. When I reboot, and don't start any browser, then the problem doesn't occur, and I can run Layouts in node webkit as often as i want.

    Which seems to corroborate your observation.

  • Hi,

    I ran into trouble with C2, when running a layout. The first time after a new start of C2 a layout runs fine within node webkit (I set this as the default browser, since I am making use of specific functionality only available in node webkit).

    The second time I start the layout, nothing happens. When i then close and reopen C2 and reload the game, the layout starts again, but only one time.

    Is this a C2 bug?

    I am running Win7 Home on 8GB memory.

    thanks,

    Daniel