codah's Forum Posts

  • No I just created that in C2 from scratch

  • Had a play just for fun click below

    A very quick 'A Dark Room' prototype

    Edit: BTW I didn't spend too long looking at the original's code as it's javascript

  • hello,

    So I just want to ask if Files can break in C2, and if so, what to do to prevent it?

    Best Regards Wonamik

    use auto-save and backup;

    and external backup (dropbox, etc)

    But no, C2 does not generally trash your files.

  • I read up on the game. The developer contacted the original game author and asked if he could write a version for mobile. Apparently it made quite a bit of money but he has no intentions of going into full time game making.

    I'll go check out the code.

    I will say though, that I go way back with gaming (like, text only games) and it's not often I play something and think 'oh, ok that's different'.

    I have the game on the go and I'll try and see it through to the end and report back

  • I can't see why it couldn't be done in C2. I actually played it for a while. I haven't decided whether it's just a standard resource/priority handling game that is presented a bit differently, or something else. Maybe I haven't hit the 'aha' point in the game yet. I'm curious why you chose this type of game to try and emulate. I am intrgued though

    Edit: in summary, yes it could be done.

  • I hadn't heard of the game before. Just had a look at it, very innovative. My initial thought is sure it could be done, why not? I think it would be easier in traditional languages though.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > Edit: so no interest. I thought free was pretty good, I normally get a 6 figure salary

    The problem is not no interest.

    The problem is "how long are you willing to stick around".

    Typically a game could take 3 months - 12 months in making.

    If you want to help out someone because you're free for the moment, that moment could be very radical according to your life and could last a week, a month? and then the project has to try pull in another dev and get him adapted to your flow of code... not to mention reading through your code (and in most cases not great commenting because who has time).

    Hey krish thanks for the input. I guess what I'm offering is help with anything at all that could be farmed out from somebody's project, but maybe it's not so easy to do that. Like, "I need XYZ fixed, it's not behaving properly and I just can't seem to get around to doing it. It should take a day or two". Or "I need this game mechanic implemented; here's the requirement, see what you can do in a week". I wasn't suggesting to give 3 or 6 months full time on one project. Ultimately I'd like to make a living doing game development, if I possibly can. Right now I'm able to give 100% of my time. Perhaps I just need to continue with my own stuff or maybe team up with someone in a similar situation.

  • Not really clear. A capx would help, otherwise we have to re-create it from scratch. Can you post what you've tried?

    So the main object has one instance variable? (you mention 'the main objects variables', plural)

    How does an 'area' have a variable? And do you really mean local variable, or instance variable?

    Help us to help you.

  • Hi, welcome to the forum.

    There are lots of ways. Did you think of any ideas?

    A couple of ways..

    You can have a variable MouseEnabled which can be 1 for mouse enabled or 0 for mouse disabled. Set it to 0 when ammo=0 and 1 after reload. On your mouse events, also have the condition that this variable = 1

    or

    Have the mouse events in a group, and disable the group when ammo=0; enable it after reload.

    Be sure to search forum and tutorials. For sure you will find something.

  • codah

    Family instance variables in my case,sorry for mistake

    The general case for swapping values is

    temp=A

    A=B

    B=temp

  • Do you actually mean local variables or instance variables?

  • codah, haha I don't think I will be doing any text as I have absolutely no idea of how to determine the json settings for them to be used as text sprite. Using text simple as sprites I don't think is efficient in terms of memory and performance. If you mean menu type backgrounds, I could do it based on the themes of the button though. Hmmm...I will take a look at it when I am free and see what I can come up with.

    Actually I created a 9patch using your graphics (as a trial) and it works fine

    Edit: I didn't mean actual text, just some backgrounds like for message boxes.

  • Well it's all already in R175.

    The view is not centered on the condition/action itself but at least when you have found the event/action you're looking for and selecting it, you have the event number on the left column that lets you know where it is in the current even sheet.

    I'm using 175 and I haven't seen what I've described. It's a small thing that would make my life easier many times a day Thing is, the event might be buried in groups, subevents, etc. and you still have to go 'searching' for it. Even a Ctrl-G "goto event" would be nice.

  • Edit: decided to keep adding to the first post.

    Some simple but useful editor features I'd like to see

    1. Search that keeps the found item(s) in view after uncollapsing.

    a. Perform a Search in the event sheet

    b. Select an event/action

    c. Clear the search

    d. The selected event/action is still selected and visible

    Item d is the important part

    2. Search and replace of text in the event sheet

    I'm referring to quoted text, i.e. strings.

    e.g. changing the name of a function is tedious if there are many calls. Although from now on I will follow my own advice and use a constant text variable for each function. But that's just one example.

    3. 'Simple' search in the event sheet

    i.e. Just highlight the next found item in the event sheet, without collapsing. WITH A HOTKEY PLEASE e.g. F3 Find Next

    3b. Highlighting of all found text

    If I search for MyDumbVariableName123, please make them all stand out on my event sheet.

    4. Hotkeys for things like alignment in the Layout editor

    e.g. Alt-LeftArrow to align left edges, etc.

    4b. Align by object centres (vert/horiz)

    For aligning objects that aren't the same height/width.

    5. Less confusing enable/disable of events/actions

    I'm not saying I have the solution, but it does drive me to distraction sometimes.

    6. Breakpoints that work

    I guess there's some low-level reason why we can't set breakpoints on 'triggered or looping branches' but it would be nice.

    7. 'Default' sprite a bit smaller

    Why so big, 250x250? 50x50 would be fine IMO. Or an option to set the default size..

    8. Search all event sheets

    If we follow good practices and have modular event sheets, it's impossible to search them all at once (e.g. where did I define function xyz?) I'm using notepad++ at the moment to do this (with a hotkey to trigger it within C2).

    That's all for now

  • You might ask yourself why you need so many globals. You might be able to declare them inside the events that use them, or as instance variables. Just a suggestion.