andreyin's Forum Posts

    I got it working a couple posts back, let me know if you have any problems!

  • I had the same question once and R0J0Hound got me a really good one-line code for this.

    The code is:

    Every tick -> Set tiledbackground Y position to (self.Y+10*dt)%256-256

    Just switch the 256 for the height of the image. If you want to change the speed, just switch the 10 for something else.

    Here's an example:

    https://dl.dropboxusercontent.com/u/238 ... croll.capx

  • I have a regular Kingston 60GB SSD and my game takes 10 seconds to preview - 5 to open up NW.js and 5 to load. Windows 10 opens up in about 7 seconds. Getting an SSD was a great decision, especially because the 60GB was at a really good price. I don't think upgrading to a PCI-E one would be worth it though, I mean, even if it's twice as fast it's just like 3 seconds faster...

  • >

    > > The NW.js exporters could indeed be a lot better. Adding the steam dlls and the txt to every one of the builds is annoying and time consuming when testing. I know Scirra can't just distribute the dlls but I'd love if I could point my steamworks folder to Construct 2, so it could get the dlls from there and use the in the exported games. Also the appid txt file.

    > >

    > It would be nice if we could set up a folder in the export window for files like this and during packaging, C2 would copy it's content to the exported folder automatically.

    >

    I thought you could it already by just dumping whatever you want in NWjsForC2 win32 folder or any folder inside.

    Anytime you export the NWJS version, anything inside will be included in the final release.

    Including the folder and files setup you made beforehand.

    It's true that you can go to NWjsForC2 folder and add anything there but the steam dlls must be inside the package.nw zip file, and it's C2 itself that zips the game files into it so there's no way of doing that.. so each time you have to test your game on Steam, you have to manually add the dlls to each OS' package.nw file

    Also keep in mind that, if you also make DRM-free versions of your game (which is my case), even if you could add the steam dll to the NWjsForC2 folder, you'd have to go back and remove it manually anyway.

  • The NW.js exporters could indeed be a lot better. Adding the steam dlls and the txt to every one of the builds is annoying and time consuming when testing. I know Scirra can't just distribute the dlls but I'd love if I could point my steamworks folder to Construct 2, so it could get the dlls from there and use the in the exported games. Also the appid txt file.

  • Why won't you update? I'm using the latest stable version, r233. Also I don't get what you're trying to do exactly..

  • It's cool to see you're still working on this!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > Use either choose("a","b", etc) or use int(random(26)).

    >

    poderia me dar uma ajuda eu queria puxar um valor um local para ele dar o choose

    exemple select text in object complete

    choose(complete.text)

    It won't work like that because choose only randomly chooses one of the values that are in between the parenthesis.

    So if you have choose(complete.text, someothervariable) it will choose either complete.text or someothervariable.

    If you have a list of letters on a text and want to pick a random one, you can do this:

    https://dl.dropboxusercontent.com/u/238 ... etter.capx

  • Sounds interesting, I'd like to give it a go.

  • Use either choose("a","b", etc) or use int(random(26)).

  • I use this one and I absolutely love it. It uses spritefonts.

    Here's an example of it being used in a game I'm making:

    I think it only allows 2 choices but you can have the answer change depending on what you pick.

  • If you absolutely need to run the inspector on Chrome, I have a good trick for it - just resize the game window down and it'll run great, even with the inspector on.

  • Bumping with some art

    I'm also looking for programming freelance work!

  • Really interesting. Does the Steam integration also allows you to have achievements and such?

  • Yes, I need this! I also already have my devkit and I'm just waiting for better C2 integration to port my game, Dreaming Sarah, over. I would only need achievements for it, but for future games I'd love to have access to leaderboards and multiplayer!