Grimmy's Forum Posts

  • Most of the time I hit F3 a search window pops up, but this shortcut is supposed to be for toggling breakpoints. It seems to work only sporadically.

    How do I make it work consistently?

    Thanks

  • I seem to be running into issues where the communication between layouts and events sheets is complicating things.

    My current project basically has a Main event sheet which gets run first and then event sheets for each layout which individually include the main event sheet.

    However I want my main event sheet to contain various utility functions that can be used anywhere but it seems that way I have arranged things I cannot do this.

    For example, a function in the main event sheet called from another layout stops functioning when I switch layouts..presumably because the include gets included again in the new layout effectively resetting the main event sheet.

    ANyway, this gets all very messy very quickly so I just wanted to know what is best practice.

    As far as I can see, one giant event sheet with everything might be best, or are there advantages that I can get from multiple event sheets?

    Or maybe the only thing broken here is that functions with waits and/or waits stop working when a layout is switched??!?

    Thanks

  • It seems this is happening because I am switching layouts at the same time. However, it should still work as the object is global and the event sheet it is used in still continues to run during the next layout.

    So do functions always stop running during layout changes? Or perhaps the wait actions are reset?

    Does anyone know?

    Thanks

  • This function should pop up a message and dissappera after 1 second. However, anything I put after the wait doesn't trigger. How can I fix this?

    * On function 'DoDebugMessage'

    * Parameter 'message' (String)

    -> DebugMessageToast: Set visibility Visible

    -> DebugMessageToast: Set text to message

    -> System: Wait 1 seconds

    -> DebugMessageToast: Set visibility Invisible

    I read elsewhere someone having a similar issue however their function seemed to just ignore the Wait. Mine seems to be having a different effect.

    Cheers

  • Am I the only one that finds this incredibly annoying? Maybe it because I'm working on a portrait game the debug window always needs to be popped out for it to be of any use. I imagine in landscape this isn't an issue.

    It would help my life a great deal if the window could maintain its state between refreshes or restarts.

    Even when hitting refresh the debug window will pop back into its original place and reset its tab back to inspector rather than watch. Really annoying.

  • Everytime I want to debug I have to keep :

    -un docking the debugger,

    -dragging it to scale it,

    -dragging the game window to resize it

    -and then select the watch window

    Is there not a way I can just have this all happen automatically as the last state I left it in? It's actually quite a lot of time wasted and its very annoying.

    Cheers

  • I have an array which I am instancing and populating with some simple data (a bit of text with the loop index) But when I run this and step through the code with a breakpoint although each instance gets created the data is never added. Not only that but the instance variable ('profile') for each array never gets updated either.

    + System: On start of layout

    + System: For "" from 1 to 4

    + System: Startup_Done = 0

    -> System: Create object Profile_Activity_Array on layer 0 at (0, 0)

    -> Profile_Activity_Array: Set profile to LoopIndex

    -> Profile_Activity_Array: Set value at (1, 1) to "Loop index "&LoopIndex

    Any idea whats going on? I would expect each array instance data to be updated as I step through the loop but everything(profile and loop index string) is 0.

    Cheers

  • APologies, yes wrong forum oops.

    This helps a lot thanks. A big mistake I was making was putting the JS files into the files folder and not in the scripts directory. Your example made this very obvious.

    Thanks!

  • Thanks. What I'm really after is how I go about using external javascript libraries.

    How do I 'import' them? Do I need to copy all library files locally? What's all this business about dynamic imports ? etc Most libraries that i see contain import command..i cant seem to do any of that in C3.

    The only demo about using external libries in the scripting example projects just uses a single javascript file and doesn't really demo anything about importing etc. It would be nice to see a demo using a realworld example with an imported script, no matter how simple..

    Cheers

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Any way to use this with C3?

  • Using modules can clearly open the route to new possibilities but I cant find an example of how I would do this.

    I'm trying to import and use something like this: github.com/colxi/midi-parser-js

    A midi to Json parser which would be really useful in my project.

    Can anyone help with a cpx example maybe of how to import and use a module?

    Thanks

  • Actually, I 've discovered that the debug is already actually displaying the multiple dimensions of the array. Its just a bit confusing because it just a long comma separated value for 2 of the dimensions.

    But its there, so that's all I need !! Thanks

  • I'm pretty sure the debugger is only showing me data from the first sheet (depth (0?)). Is there a way to view the other 'sheets' in the depth axis in the debugger?

    Thanks

  • That one is a gem. Thanks!

  • Lets say I dont know how many objects are in the loop and I want to perform some action as soon as the loop has finished. How do I do that?

    Cheers