ggibson1's Recent Forum Activity

  • TiAm

    That is good info.

    The point I was trying to make however was that padding is being done in the sprite sheets.

    The images in my game are not power of two and they have padding added to them since I am using high quality downscaling.

    I do not know if this padding ever actually ends up in the video cards memory or not... is the entire sprite sheet loaded or are the individual images cut back out at run time and put into the video memory?

  • I figured that would be the case because in the 90s I made an image file format and wrote software that drew directly onto video cards... what I learned was that compression only applies to the files saved on disk.

    Raster image types jpeg, png, pcx, etc all get turned into bitmaps in memory because that allows the fastest image manipulation even though it eats up more space.

    I think one other consideration is what has been mentioned on these forums several times... images get padded with extra transparent pixels to make the images "power of two" e.g. 64x64 or 256x256 which means the size will be increased even more than just the plain png saved as a bitmap.

  • If cursor hits wall stop

    if cursor is beyond wall move cursor back to the wall and stop

    if mouse movement direction is away from wall then release cursor to move

  • I would think saving the image as a bmp file should show you what size it will be in memory since uncompressed images are bitmaps .

  • Personal x2 = $260

    Business x2 = $860

    860 - 260 = $600

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank You Aphrodite thats all i needed to know, using the array is a method i need to burn into my brain.

    I just seen this reply sorry for the late reply. I just asked R0j0hound this question but maybe you can help me aswell.

    im having an issue with figuring out if the cell is empty because if my cell is equal to 0 and my animation frames adjust to the value of the array.

    dirt = 0

    grass covered = 7

    If an empty cell is equal to 0 that is giving me an issue because if it is empty it will always make the sprite that occupies that cell Frame 0

    What is the return value of an empty cell?

    Im kinda confused because the way i see the logic it seems like an empty cell should return a different value.

    I believe that arrays start off with all zeros. If you wanted it to default with something that means "empty" to you then you could loop through the entire array right after you first create it and fill each cell with -1 or whatever you want to mean "empty".

  • Perhaps your nested JSON actually is just a string? It isn't really nested JSON unless it is JSON nodes ... JSON nodes encoded into a string isn't nested JSON.

  • I have no problem loading regular JSON with the AJAX loader and the JSON I get from the C2 Dictionary and Array objects load up just fine with Newtonsoft... including nested JSON strings. I have also ran the C2 JSON through JSONLint and it looks fine.

  • I'm on the fence here because I fear I don't fully understand what this is capable of but I thought I'd ask directly.

    I'm looking for a way to implement a potentially highly complex dialogue system that will include localization and functions something like Guzimus system in the link below.

    https://www.scirra.com/tutorials/833/mod-side-story-a-walkthrough-of-a-text-dialog-mod

    Is this tool worth looking further into for my purposes?

    Sure it is worth using.

    The C2 Data Editor makes it a lot easier to maintain a local database of information and query that information.

    That kind of tool can be used for a million different things whether it be an inventory of in-game items, a dialogue system, a list of monsters, etc.

    The C2 Data Editor simply takes what is already available in Construct 2 as a manual process and automates a lot of it.

    If you have ever made a computer program that used a SQL database then you already know the type of tools C2 Data Editor provides.

  • You can try C2 Data Editor. It imports csv and exports to C2.

    https://www.scirra.com/store/game-making-tools/c2-data-editor-124

  • A new update has just been uploaded. Everyone should receive an email in the next 24 hours with download instructions.

    From the Changes.txt file:

    * Bug fixes

    * Added "Remove Sort" button to the Array Editor screen so the data can be reset back to the default sort order.

    * The main screen now sorts data objects by name.

    * Added two new DataSet Functions (SearchBetweenFindFirst and SearchBetweenReturnColumn).

    * Add ability to replace empty fields with a value using the Search And Replace dialog.

    * Sort objects list in the "Select To Inject" dialog.

    Descriptions of the two new DataSet Functions:

    SearchBetweenFindFirst

    - Search two columns (LowerBound and UpperBound) in a DataSet for a match where a search value falls between the LowerBound and UpperBound. If a match is found then the RowIndex for the matching row is returned.

    SearchBetweenReturnColumn

    - Search two columns (LowerBound and UpperBound) in a DataSet for a match where a search value falls between the LowerBound and UpperBound. If a match is found then the value of a column in that row is returned.

    *** Don't forget to rate and review C2 Data Editor in the Scirra App Store!!!

  • Update:

    When i try to edit a row sometimes it jumps to the first row and overwrites this value insted of the actual selected cell... the thing that i have to click serveral times is really annoying.

    when i set the colum with it doesnt get saved. as soon as i add a new colum it gets reseted also when i restart thge tool whats making the work with big tables very hard.

    regards.

    1) I could not reproduce clicking a cell and having it jump to the first row. If you can explain the exact steps that lead to this happening I will look at it again.

    2) Clicking to edit a cell is standard grid behavior that comes built into the grid component I am using. Click once to select cell and click once more to begin editing.

    3) I will look into adding the ability to remember column widths for the next version.

    Thanks again!

ggibson1's avatar

ggibson1

Member since 7 Dec, 2013

None one is following ggibson1 yet!

Trophy Case

  • 10-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

12/44
How to earn trophies