LittleStain's Forum Posts

  • The problem remaining is you MUST "import" the file in C2 editor. You cannot tell a Player to drop files in this folder and expect them to load when the game runs :-/

    Sadly a running C2 game has no way to reference a local file during runtime that wasn't imported during design/build time.

    It does have "load image from url" and it has "filechooser" and there is the nwjs-object:

    The NW.js object allows access to features specific to the NW.js exporter, such as reading and writing files to the local disk drive.

    But I'm sure you have read The Manual extensively..

    Like this part:

    Previewing

    Note that previewing with NW.js runs directly from its install directory. As a consequence, the AppFolder expression will return the install path. If this poses a problem for you, use the following workaround: have a global string variable; if 'Is in preview' is true hard-code it to some development folder somewhere else.

  • Ok, so these on the right events are within a function..

    So http://localhost:50000/textures/pawn-icon.png does exist?

    Or Would you need a different directory?

    Seems like this is a preview and you are trying to reference a directory inside an exported project, or are these project-files we are talking about?

  • Seems like you are not picking the right sprite in your events..

    Look at the section unreferenced objects

  • What is the function Global_Log and what is Function.param(3)?

  • This should work:

    circle compare variable

    systen compare two values: circle.pickedcount = circle,count

  • Is there a way to determine which "Mob" the slimes are part of?

  • What part of creating it do you have issues with?

    How well is your knowledge on working with Construct?

  • Is TDM2 a music file or a sound file?

    I ask, because you are preloading TDM2 and the manual states:

    Music is never preloaded, since music tracks often involve a large download size, and it is not usually important to have music play with as little latency as possible. Music will still stream from the server while playing, but if the latency is important, the Preload action can be used to load it in advance of playing.

  • Quick look..

    Event 4 can never be true while event 3 is true..

    So it will never run..

    Just make event 4 a seperate event instead of a subevent and it will work..

  • Each lanespawner-object has a different lanenumber and a boolean variable empty..

    every 0.75 seconds, first I select all lanespawners that are empty, then I pick a random instance from that selection.

    That instance spawns the bullet, which also has a variable lanenumber.

    This instance boolean empty is set to false and the variable lanenumber of the bullet is set to the lanenumber of the lanespawner.

    When the bullet is destroyed if the lanenumber of the lanespawner is the same as the variable of the bullet, the lanespawner is set to be empty again.

  • Local storage?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • One way of doing it:

    Empty Lane Only

  • If your game runs in the browser, this will be hard if not impossible to implement..

    If your game is exported to apk, I believe there is a cordova plugin somewhere in the plugin section..

  • Basically, 8-direction : 0,45,90,135,180,225,270,315 degrees..