nimos100's Recent Forum Activity

  • Well the easiest way, is to just make it so the player can't save during the level. But only after or before a level. Wouldn't that solve your problem? So make the save button in the menu where they choose next level or maybe make it do it automatically.

    But yeah in my example with Dragonhelm you could cheat, but I don't have a problem with that in the games I make, if people want to cheat they can cheat as much as they like. I don't make competitive games anyway

  • nimos100

    I want the player to at least start the highest level where he/she last played and which hasn't been cleared yet.

    About the config file, so what do I have to use? You did not specify in your first reply so I search by myself and I found webstorage and Dictionary. Please do specify if you have another better method in mind. Much appreciated. Thanks.

    Not 100% sure what you mean, if the player load an old game, they will continue from where they left off, ain't that what you want?

    Anyway here is a very simple example of how to save to a file, that I made some time ago, for another post I think.

    It just store some text in a file.

    I don't have an example from the load data. Except from Dragonhelm, so it might seem a bit crazy.

    In the game all dungeons are random generated, and to make it so players can re-enter them, I store them in files, so I can load them in again. So the load function in the screenshot, read the file. Which would look like this for the tiles of the dungeon.

    Each number then represent a certain tile, and it will read through the file, until it reach an "" (Blank space) and from this it can rebuild the dungoen.

    What you can do, is to save the settings to a file, and then read in each setting you need and update it in the game, at the "Start of layout", as I have done in my game.

    Don't get scared off by my load example. It doesn't have to be like that. Just add the NodeWebKit functionality. But for some reason the help document for it, seems to just link to where you can download it. which is not very useful when you want to learn it I guess

    But maybe there is a tutorial that will tell you how to load files simply. Otherwise let me know, and I can try to make something simple to show it.

  • But if you want to make save games, there are a build in action in C2 that you can use. Its in the system -> Save and Load. It will save the game in its full state.

    If you want to store for instant display settings, controls etc. I would personally just make a file that you read each time the game starts. And save any changes to this.

    A lot of games today will have a config file, where they store varies settings. so it would be like that.

    Regarding your examples, I cant tell if that will work. You will just have to test it

  • Add key will as I remember either set a key if it already exist or it will create one for you with the value chosen. Where as set key will just set a already existing key, and if there are none it will do nothing. So if want to "fill" your dictionary you just need to use Add key and in theory you can simply use it for every thing, you don't really have to use the set key at all.

  • Depending on how your deal is, meaning its going to be a contract for a fixed amount or just hour based, the size of the game etc.

    If I were you I would just write up all the features that client want, like:

    1 Map

    2 player support

    Have to make sound

    Have to make graphic (animations or stills, Quality etc.)

    Save/load functionality

    Web integration

    and so on.

    And then estimate how long you would have to spend on each part, and based on that and how much you would prefer to be paid for a hour of work, you will get some estimate of the final price. If you do this privately you have to take into account, all the benefits that you would normally get from working at a company that you don't get, if you work as freelance. The "normal" benefits will of course differ from country to country. But will give you a higher price per hour.

    If your idea is to primarily use the game to promote yourself, rather than making money on it, you can of course just lower the cost, so the client is more likely to accept it etc, and in the end you can use it to maybe get more customers.

    Anyway that's roughly how I do it, when doing freelance work, and it works fine for me as you wont suddenly feel that you are working for free, or that you are screwing the customer. But if you work on a fixed contract, you might end up having estimated wrong, regarding some of the things, forgotten some and so on. So I would suggest really spending a good amount of time, making sure that you have gotten all the features down and made part of you estimation, and ofc make it a lot more detailed than my example above

  • Every time you restart the game all variable will, by default be as they were set, by you in C2. If you want to keep them the same after you change them during runtime, you have to make a functionality that can load the changed settings. There are some different ways to do it, as I recall, so think the best you can do, is to start searching the manual and learn about the different ways and see what suits you best.

    Try to check save/load from file and see if that's what you need.

  • I don't think I understand what you mean? You will always look through the camera. Why would you move it outside the borders?

    Anyway since im not 100% sure what you mean this might be way off, what you need But then you can just ignore it.

    But if you make the layout lets say 2000px wide.

    Then you make a check that "if player.X < than 200" then he cant move further that way, and then you do the same on the other side "if Player.x > than layout.width - 200". Then you would have 200 px on each side. Maybe then the camera can shake.

    Anyway as I said not sure its what you refer to

  • You can look at peoples profiles, those that have a lot of bronze, silver and gold dots. Then you can scroll to the bottom of there profile and see what they have done to get them and you can try to do the same. Other than that im not really sure. Havent paid to much attention to it.

  • However I meant to post a screenshot to show you how to do it, but my dropbox had a melt down. But got it working.

    But what I meant you could do was like this.

    It doesn't really help you to put the "Set text.." in an every tick, if it only updates once every 1 sec (60 ticks).

    A good idea I think is to use Variable objects instead of local and global variables. Because when you get a lot of them you will end up with a huge list, that you have to scroll through, which gets annoying.

    So instead you can just make a small sprite (16x16) and place it outside the layout and call it "Game_settings" or whatever. And then you add all the variables you need to this one instead. That way you can easily find them when you need them and you can use Booleans as well. Personally I rarely use anything other than those for global and local variables. And if you need them in other layouts, you can just turn the object global in the properties settings.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • [quote:3v0i9pu2]I just tried putting everything into the same group, but it keeps not working (see capx). Why does the variable get reset to 0 anyway?

    Not really sure how to explain why it resets. But the way you can look at it, is that a local variable only keep the assigned value during a single cycle (tick) if its in an event. So at the end of the event the variable is "destroyed".

    For a function it only live during the function call. So if you call a function several times within the same cycle, the variable will still be reset to it initial value each time you call it.

    So its a "Use and throw away variable" where global is "Keep and reuse variable" that stays the same until you change it. So it will never reset to its initial value unless you do it manually.

    Not sure if that makes it easier to understand. But not sure how to explain it otherwise

  • There is nothing wrong, the reason it appears to not work, is because it gets reset to 0 all the time. You can see this if you run it in debug mode and pause it, and just keep pressing step.

    You have to move the "Text Set Text.." below the "set variable to round..". And optimal move the local variable to the top of the event where you need it.

  • Might be because you are using Internet explorer as your preview browser. Try to switch it to another or Node-Webkit, and see if that fixes it. Its just a guess.

nimos100's avatar

nimos100

Member since 23 Sep, 2012

None one is following nimos100 yet!

Trophy Case

  • 12-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies