jdlendon's Forum Posts

  • In the other forum post, GenkiGenga said: "Using the search function how it is, is cumbersome. It doesn't show sub-events so (if you use them) you cant rely on making changes without first clearing the search and then scrolling the mouse wheel like a mad man because when you have a lot of events on one sheet you cant use the bar on the side because it moves too fast.

    Also, having everything separated into different event sheets is good, but if your searching for something and you don't remember where it is, it means you have to search multiple event sheets which makes it even more tedious."

    These are some great points in favor for this improvement. I was trying to decide if it would be better to split my event sheet in to multiple sheets, but for this reason I decided not to. I wouldn't think it could be too hard to at least have it go back to where you were before you hit the search button when you're done with the search. But then again, maybe it is. It is a pretty complex program, as far as I can tell...and I love that.

  • HI, I've been using this wonderful product for only about 5 months now. Here is one feature I would LOVE to see.

    The problem I have with the current "Search" function in Construct 2 is how it doesn't allow me to right-click on an any event in the filtered search to select an option from the drop-down list to take me back to my regular, non-filtered view, but AT THE LOCATION of the event I click on. Instead, when I click on "clear search", it takes me to the TOP of the event sheet and I have to find my way back to where I was before the search. Even if it just took me back to where I was before the search I'd be happy.

    Oh, and maybe add an "Event Sheet" tab to the Projects window that opens an Event Sheet Properties window, that shows all the Groups, in order of appearance, that you can click on to go to that section of the current Sheet.

    What do you think???

  • Ok, so I managed a workaround. I had to make a new local variable to store the base value from the array in an event placed just before the one in my 1st post. Then, I just replaced the "array.at" variables in the condition and action with this new local value which WILL add with the global variable.

    Is this a bug? The program doesn't have a problem getting the value from the array, but it won't add it to a global in an event. I have noticed that if I, say, have an similar array event, looking through all the x values, etc., and I want to create one object, it will create about 30 or so before moving on to the next event. It's almost as if there is a serious lag while it is searching the array (and I'm not talking about a big array), and if it finds the value, it keeps searching, but the condition has been satisfied so it gets stuck doing the action repeatedly until it is through searching for a while.

    I've just taught myself how to use this program in the last 4 months, so I don't really have a lot of programming knowledge to know what is going on. Maybe someone can shed a light on this.

    Thanks

  • Hi, thanks for the reply. I actually set the event up in a function right before you replied, which did eliminate the need for a Trigger Once condition. But it is still only subtracting the base value from the array and not adding the global. I can see the global value onscreen in a text object, so I know it is not being reset to 0 or anything.

    Thanks

  • Hi, I'm trying to do something that seems straightforward, but isn't working properly. Here is what is going on:

    "For each X element:

    If Array: Value at Array(x,y,z) = LocalVariable (it does)

    Trigger Once:

    -->And If Object.Var > or equal to (Array.at(x,y,z) + GlobalVariable) -->then ACTION: subtract (Array.at(x,y,z) + GlobalVariable) from Object.Var"

    (The Local and Global Variables have already been set, of course)

    For some reason, it's ignoring the "+GlobalVariable" part of the condition and action. It should be checking if the value in the array PLUS the GlobalVariable is greater than the Object.Var, and if so, subtracting all that from the Object.Var. Other than that, this event works well.

    Any ideas as to what I'm doing wrong? Can you not add variables to array values in conditions and actions? Is the Trigger Once messing it up? I need it to keep this event from continually subtracting the array value (+Global) from the Object.Var. Also, I don't think it matters, but the 'z' coordinate in the array is a variable, too.

    Thanks in advance...

  • Hi, I'm trying to make a multiple save/load game slot system in a separate layout and I've figured out the basic system to use the system action "Save" to save the game's State before leaving the main layout, then go to a menu screen layout and then to a save/load game layout. The saved SaveState should still be available to be saved to a game slot selected by the player and loaded later. But I need to know a little more in order to save a game state to one of many slots and then call a particular slot later to load that game state.

    The topic, "How to make savegames" touches on this, but doesn't go into any detail. Is the "SaveStateJSON" the actual file saved in the browser on the system action: Save, which could then be called using the WebStorage.LocalValue(SaveStateJSON) expression? It says something about triggers needed to access the SaveStateJSON. Can I do something like: On button touched---> Webstorage: set local key "Save" & SlotNum to SaveStateJSON ? I see plenty of examples of saving variables to webstorage, but none showing how to save and then retrieve a savestateJSON using webstorage, which I could then use the action: load from JSON to go to load the game.

    I'm guessing that to load the SaveState I have to do something like: On LoadButton touched: If WebStorage local key "Save" & SlotNum exists-->Webstorage: set local storage from JSON string "Save" & SlotNum, and then action "Load Game from JSON string: Webstorage.LocalValue(SaveStateJSON) . However this isn't working so far.

  • Well, on experimenting, I switched the menu objects in the title screen layout to non-global and that seems to have fixed the problem. I'm still curious about what will happen when I make future "Rooms". Do I need to make the objects in the main game, like the characters and smashable tables, non-global as well? I want to be able to return to a room and see the dead bodies and broken objects still lying around, but I don't want to see objects from multiple layouts at the same time. I'll try the persist behavior for those things.

    Maybe the global objects should just be limited to the HUD/GUI objects?

  • Hi, I've just created a title screen layout, and I also have a layout for Room1. I've got it to go to Room1 and start the game when I click on the "Start" button from the Title Screen layout. Now, when the game switches to a new layout, shouldn't everything disappear from the previous layout? I'm still seeing the title screen objects when I'm running the Room1 layout (and vice versa). I've got it set up so that if I hit the 'Esc' button while in Room1, it saves the game, then, on save, it goes to the title screen layout where the options are, and then I can return to the game. Is there some steps missing?

    As a separate question, I've also made all the objects in the game global. Is there a reason to have non-global objects?

    Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • That did the trick. THANKS

  • Hi, I'm watching a YouTube vid, called "Construct 2 Plugins - Arrays", by English Acorn, where he shows how to download an array in a .json format after installing the AJAX object. When he runs the game, a download box appears asking where to save the file on his computer. However, when I try all this, I get a Windows 8 window asking me to search and install an app to open the file. I don't want to open the file (I could use notepad for that), but I don't see any download box. What am I missing? I've tried installing the Browser and WebStorage objects in case those were needed, but not mentioned by English Acorn.

    I've got an array to load from a .csv file, but now I need it to save to a json file. I'm using Internet Explorer, by the way. Any ideas?

  • Is there a more appropriate forum location to post feature requests? Anyone else agree or have a comment on some of these (besides the 1st)?

  • Hi, I'm getting along in programming my first game and will eventually need multiple rooms using the same basic events from the one (or eventually more) Event Sheet I've created so far. I would like to see a capx example of basic reuse of an event sheet for multiple layout room scenes. Alternately, how to use multiple event sheets...how they are called upon need. I am also planning on having little mini-games popup with different event sheets to run them, and would like to know how to go about doing that.

    Any help would be appreciated.

    Thanks

  • Thanks for pointing that out. I'll have to learn some of those useful shortcuts.

  • Hello, I don't know if anyone has asked about these features, but here are some ideas I would love to seein C2.

    1) An option to add a BLANK event or sub-event space without opening the 'Add Event' window. This would allow adding copied event.

    2) A button or way to destroy all instances of an object at once on the inspector page instead of one at a time.

    3) It would be nice if the C2 program remembered all the margins and box sizes for the events and actions upon minimizing >< maximizing the program window. Sometimes I accidentally grab the program window and it goes to half-window size, but then, when I go back to full window, all the margins are reduced to minimum and I have to redrag them to proper size.

    4) A really big help would be if, upon undoing/redoing recent events, the screen would jump to the spot and highlight the area of the event or change in question. Sometime I find myself undoing a bunch of changes and having to search for what they were and hope to notice them.

    5) Possibly a bug: I notice that occasionally the icon for an object changes to a different frame of the object instead of staying as the 1st frame. Is there a reason for this?

    Anyway, love the program and I'm having a blast creating. Any ideas or help on these issues is appreciated