Lazernaut's Forum Posts

  • My main PC is a desktop running an i7 7700 and a Geforce 1070. My laptop is an i7 ~8000-something with Intel Graphics and it seems to be the same for both of them. Perhaps it's using the CPU only in both cases? Is there a way to check this?

    Dunno if this screenshot might help. It was taken on my desktop:

    Attaching pictures on this forum seems utterly broken, so here's a link in case it doesn't work:

    dropbox.com/s/puwd1thvtfgog1l/2020-05-09%2016_14_02-Solaris%20Exploratio.png

  • It's draw calls, as that one goes really high. It's also why I thought I was doing something wrong. Or maybe it's just a side effect of all the filters and stuff?

  • I was wondering if I'm doing something wrong? I'm using the same technique as everyone else to make a light effect but just 1 sprite around the player eats between 10-30% of the CPU. Is this normal?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey everyone :) As part of Ludum Dare 46 Construct 3 was free. I took the chance to try my hand at building games again, after having not really done it in 10-15 years. It went far better than I expected so after LD46 was over I went and bought Construct 3, and polished the game into something I could be proud to release. And so my game is now officially out on Google Play. Just waiting for the review process, after which it'll be out on Steam as well. It's a tiny game so I don't expect much of it, but to me personally it's a huge deal.

    Hope you'll give it a go - feedback is most welcome.

  • Out of frustration I rewrote the whole thing and now it works. I'm sure I'd overlooked something basic, trying to fix a fix etc.

    In case others come across this thread in the future I'm posting my solution here. It's tested and works after exporting the project as an nw.js project.

  • I just tried creating a blank project with just a text field and LocalStorage, then export it as nw.js - it works, so it's something in my code I'm overlooking. I'll post screenshots, hold on.

  • I'm putting the final touches on my game and I have a highscore function. At first I built it with the LocalStorage object and it worked perfectly. Except, when I exported it as an nw.js project it stopped working.

    I read somewhere here that perhaps it'd be better to use the Dictonary. Coding the dictionary is slightly more straightforward than the LocalStorage on but the only save option I can find for the dictionary is downloading a .json file but this prompts the user to download the file. I need this to happen silently.

  • Perhaps you could use the persist behavior on them to make them remember? Otherwise you could maybe give them an instance variable called id. Then, when the layout starts, create the needed number of sprites, set their id incrementally (so the first one is 1, next one 2 etc.) and then save your information based on that id?

  • I would probably put an empty text box somewhere, and then change its text if the user pressed Enter and the text inputs are empty - if I understood you correctly :)

  • All I can think of is maybe multiply the number by a 1000 when storing it in the global variable. Then, when you set the text, use float(globalVariable/1000).

  • Here are 2 possible solutions I could think of. I don't know your needs, but perhaps you can use this as an example to get what you want.

  • The box you see there is how Construct knows where the cat collides with the Solid. If you move the bottom of the box up a bit, the cat will rest closer to the ground.

  • Supply and demand - the market is completely saturated. If you want people's attention you have to do aggressive marketing I think. It's not enough to simply have a quality product. It's like writing the best novel in the world and never leaving the house with it. Means nobody's going to read it.

  • Are you seeing any pictures in my last post? They seem to be gone...

    How about creating a global variable called scoreBuffer? Then you add the points to that buffer from the events you want, tell Construct to wait some miliseconds, and then use the scoreBuffer to display the score?

  • Oh I think I understand. I have just implemented that feature in my game using a Spritefont object. I expect you can do this with any object that displays text.

    So if I understand you correctly you want this:

    I've done it like this:

    1) First I create the text object.

    Then I change its text right after to what I want.

    2) Makes the score text float slowly upwards. It sets the text object's Y coordinate to whatever the coordinate already is, and then subtracts by 0.25. You can change this value to change the speed.

    Hope this was more useful for you. Otherwise, as you can tell, I find it a little hard to figure out completely what you mean. I'll try and help if I can.