grossd's Recent Forum Activity

  • OK. Found my error.

    I got confused between System.ForEach and Dictionary.ForEach.

    I used the first, instead of the second. A subtle, yet, very important difference!

    now it works.

  • Hi,

    During a game i collect game data into dictionary. I then want to convert the dictionary data into a CSV file, however, for some strange reason I can't get the loop over the dictionary working. What seems simple just doesn't work for me.

    Global aCSV: text

    On Button Click

    -- For Each ADictionary

    ---- Set aCSV = aCSV & "," & aDictionary.currentvalue

    I can confirm that during testing the dictionary has at least two entries, however, for some reason the contents of aCSV is ", 0"

    any thoughts would be much appreciated

    Dan

  • Thanks.

    At the time, I wanted to create some external tools to augment capabilities of the C2 code editor, and manipulating XML sounded like an interesting idea, but in the meantime I found other ways to help me, such as grep.

    Dan

  • no

  • Hi,

    It would be really nice, if there was a text window to paste version changes into, which gets saved along with the version number of the game. Perhaps this can be coupled somehow with an increase in version number. Like this what has changed, is kept together with version information and the code.

    Ideally, there would be a task list included in C2 (like for example in Visual Studio IDE), which can then be associated with a saved version.

    thanks,

    Dan

  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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)

grossd's avatar

grossd

Member since 4 Feb, 2014

Twitter
grossd has 1 followers

Trophy Case

  • 10-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies