Rable's Recent Forum Activity

  • Hello,

    As stated in the title, I'd like to create a customized icon to replace the default NW.js icon.

    I've found this tutorial, which suggest using Format Factory and Ressource Hacker, but the tutorial is nearly 2 years old. Isn't there a more "official" way to create an icon for a NW.js project?

    Thanks in advance!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm quite confident that the memory is cleared at the beginning of each layout. This has been somewhat hinted by Ashley in this post :

    And as he suggest, you can see it for yourself. Start your game in debugger and look at memory usage. You'll notice that when you switch from one layout to another, memory usage decrease drastically. I learned that the hard way when I needed to optimize my previous mobile game (now I develop for desktop and life is soooooo easier!)

    I guess this indeed implies that putting all the objects on a loader layout is pointless, even harmful as it will delay your loading screen with no purpose.

  • I don't think you are wrong at all! This makes perfect sense and I will have to keep that in mind when designing games.

    Now my current (big) game has only one layout for every fights, so I will have to choose in either having a longer loading time before each fight or having a very slight loading delay when a new object is appearing. At least now I know what are the flaws of each solutions.

    Thanks a lot, this was very interesting and important!

  • This is quite an important information to me, so I need to be 100% sure about it. I've read the posts from Ashley at least 3 times in the past, and I just re-read them just now, and I don't see anything in them that would make me think it is a bad idea to create a layout dedicated to stocking objects. Could you quote the part of the articles which make you think it is?

    I myself am using such a layout in all my project and didn't have had any problem until now. Of course, if it turns out that it is really bad practice, I will change that.

    Actually I already asked the exact same questions nearly one year ago, and the globally admitted reply is that such layouts were good practice.

    (second paragraph is the question)

    Thanks for the information!

  • So I suppose you never decrease the time?

    You can do :

    system > every X seconds (every 0.1 second for example)

    add an action > system > subtract from

    and you subtract 0.1 from your time variable.

    Now your time will decrease by 0.1 every 0.1 second and the code above will work.

  • Hi,

    You probably have a "time" variable in your project. When the player succeed the level just put a new event :

    system > add to > score

    And add the remaining time value to the score.

    You could also enter time*10 or such things.

    Hope it helps! Good luck!

  • One thing you could try is to place a very small invisible object on the border of the ledge, then place precisely the origin of your character object so that it is correctly placed next to the ledge during the climb animation. For example, if your character is hanging to the ledge by his hands, place the origin on the characters' hands for this frame. Then just set the character's position to the invisible object's position as soon as he is attached to the ledge.

    I wouldn't bother to move the character's Y position while he is climbing if you have a climb animation. Adjusting the origin for each frame seems more consistent.

    Good luck!

  • Hi,

    It heavily depend on the type of game you want to make. IMO a local multiplayer is not always more difficult to do than a single player game. For example a one player shmup or 2 players shmup is the same difficulty.

    Is there any built-in templates close to the genre you're looking for in C2? If so, I'd suggest choosing a one-player template and then trying to add a second player.

    Good luck!

  • I would pay for a native export addition, everything same as C2, with native export for PC, iOS, Android and Consoles.

    ps. We still have a broken Linux and MAC export since NWjs is bugged (fails to load, red bar) for those platforms for ages.

    Native or better export options are #1 on my wishlist by far. No way to export to consoles (Wii U excepted) is the biggest C2 flaw IMO.

    Better options for isometric games is #2 (on my wishlist).

  • Thanks for the link. I'll check with the technical guys if this is required.

  • gumshoe2029

    Thanks a lot for your concern, but I don't really need something 100% secure. I use this session ID just to figure out that the score of this game has already been injected in the database sooner. It isn't related to password or anything that need high security.

    But it is very possible that one day I'll need something cryptographically secure, so I'll refer to this post if it happens.

    Thanks again!

  • gumshoe2029

    Thanks for the reply. The CB Hash plugin is pretty close from what I am looking for. But if I understand this plugin correctly (which I may not) it doesn't seem to me that it generates random strings. As you state yourself, it uses a seed and generate a character string based on it, right?

    So if I use random (1000000) as a seed, well... It does the same job as just using random(1000000) as the unique code in my case. I don't necesarilly need to have that code scripted.

    But anyway, thanks for pointing out the CBHash plugin to me. I installed it and it will be useful someday for sure. <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

    EDIT :

    If anyone else need to do this, here is what I did :

    On start of layout

    repeat 30 times --> text > append keyboard.stringfromkeycode(floor(random(42)+48))

    set sessionID to text.text

    And now I've got my text variable sessionID with a unique 30 character string composed of any random character chosen from numbers from 0 to 9, letters from A to Z and a bunch of special characters.

    If you need more information about keyboard.stringfromkeycode and stuff, you should look at this excellent tutorial by Waltan :

    https://www.scirra.com/tutorials/739/your-own-textbox

Rable's avatar

Rable

Member since 6 Aug, 2014

None one is following Rable yet!

Connect with Rable

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 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